Trying to deploy a model developed with the classification learner
Mostrar comentarios más antiguos
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 comentario
Or Shem Tov
el 12 de Mayo de 2020
Respuestas (2)
Harsha Priya Daggubati
el 15 de Mayo de 2020
0 votos
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 comentarios
Or Shem Tov
el 15 de Mayo de 2020
Harsha Priya Daggubati
el 15 de Mayo de 2020
Great, I can see this is the issue with test data format being different from train data then.
Ushtar Arshad
el 7 de Mzo. de 2022
0 votos
Unable to resolve the name trainedModel.predictFcn?
2 comentarios
JIKUI ZHAO
el 22 de Oct. de 2022
I have the same issue when import testdata for prediction
aikaterini vraka
el 21 de Mzo. de 2023
I had the same issue and it turns out I needed to run the function before
[trainedClassifier, validationAccuracy] = trainClassifier(trainingData);
Categorías
Más información sobre Classification en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!