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 件のコメント
Hiro Yoshino
2022 年 10 月 27 日
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!