real-time data processing

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 个评论

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"

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品

版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by