Trying to deploy a model developed with the classification learner
이전 댓글 표시
Hi
Trying to deploy a model here I developed using the classification learner..
I'm trying to use:
>> yfit = trainedClassifier.predictFcn(T2)
Unable to resolve the name trainedClassifier.predictFcn.
Doesn't work, any ideas?
Thx!
답변 (2개)
Harsha Priya Daggubati
2020년 5월 15일
0 개 추천
Hi,
I assume your model is saved as trainedClassifier from Classification Learner Application. I suggest making sure whether the trainedClassifier object is successfully saved in your workspace and has the function predictFcn. Make sure the test data is similar in structure to the training data.
You can refer to the following link for step-wise explaination:
Hope this helps you figure out the issue!
댓글 수: 2
Or Shem Tov
2020년 5월 15일
Harsha Priya Daggubati
2020년 5월 15일
Great, I can see this is the issue with test data format being different from train data then.
Ushtar Arshad
2022년 3월 7일
0 개 추천
Unable to resolve the name trainedModel.predictFcn?
댓글 수: 2
JIKUI ZHAO
2022년 10월 22일
I have the same issue when import testdata for prediction
aikaterini vraka
2023년 3월 21일
I had the same issue and it turns out I needed to run the function before
[trainedClassifier, validationAccuracy] = trainClassifier(trainingData);
카테고리
도움말 센터 및 File Exchange에서 Classification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!