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!