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!
1 件のコメント
Or Shem Tov
2020 年 5 月 12 日
回答 (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!