real-time data processing
Afficher commentaires plus anciens
Hello,
I have a flowing real-time data which is stored in "AllData" and I want to concatenate last 6 rows as a column. The code-block is in a while loop and I can display the manipulated dataset (clf_data) when I uncommented "disp(clf_data)". However I cannot it with pre-trained machine learning model.
It throws an error: Undefined function handle.
Can anyone help?
Thanks in advance
dataset = AllData(:,2:9);
clf_data = [AllData(end,2:9),AllData(end-1,2:9),AllData(end-2,2:9),AllData(end-3,2:9),AllData(end-4,2:9),AllData(end-5,2:9)];
%disp(clf_data)
ml_result = machine_learning_model.predictFcn(clf_data);
1 commentaire
Hiro Yoshino
le 27 Oct 2022
You might be using a trained model itself. In that case, you can make a prediction by simply:
ml_result = predict(machine_learning_model, clf_data);
You can check what the object type is by:
type(machine_learning_model)
Unless it says "structure", you cannot use the method ".predictFcn"
Réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!