Closed palisn closed 6 months ago
First idea is to separate the live preview into three parts:
FeatureExtractor
(2.) and requests a prediction from the Model
(3.). (LivePreview
)FeatureExtractor
)FeatureExtractor
and runs its underlying model providing a prediction for the given input. (Model
)The first class should not require any adjustment after it has been established, while the second and third one will have to be customized to the way the input data will be handled and the kind of underlying model. Further, the second and third classes will have to be compatible both in feature dimension and in input semantics.
There is a simple test script reading values and giving live feedback using the explicitly loaded model. This is rather ugly though and I would like to separate the serial input, the feature extraction and prediction. Thus I will add a modular mechanism that includes the serial input but provides interfaces for external feature extraction from the input and the prediction mechanism.