MATLAB: Anyone help me please, How to use Classification Learner App to calculate accuracy rates on training set, and on test set?

classification learner app

I am using classification Learner App on my dataset. My dataset has two sets, Training set and Test set these sets are separate files, I have trained the training dataset using Classification learner and exported the model, now I am not getting how to evaluate this trained model on the test set, to check the accuracy on the test set too. Please help.

Best Answer

It's all explained here: https://fr.mathworks.com/help/stats/export-classification-model-for-use-with-new-data.html Basically, if your trained model is called trainedModel, then use the predictFcn property on new data, eg.:
Y = trainedModel.predictFcn(newData)
Related Question