Hi, Nilima Gautam
In classification learner app, the app will split your data either by holdout or kfold depend on your selection. It will split your data into training dataset and validation dataset. When you are training your model in the app, it uses training dataset to train it and later uses validation dataset to test it and reflect the accuracy for you. In other word, the accuracy you got in the app is the accuracy of your model based on validation dataset. When you click on the confusionchart in the apps, you can realize the number is smaller than original dataset (because it is the validation dataset splitted out from your original dataset).
However, after you export your model to workspace as trainedModel (variable), you may predict your model with any sample
signalTemp2 = trainedModel.predictFcn(outSample);
Or before you dump your dataset into classifical learning apps, you may split your dataset out first, this dataset, some people call it as testing dataset. the function is cvpartition. The workflow should be :
c = cvpartition(dataset.label,'HoldOut',0.1);
triidx = training(c);
testingdata = dataset(~triidx,:);
training_validation_data = dataset(triidx,:);
signalTemp2 = trainedModel.predictFcn(testingdata);
2 Comments
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/500549-after-training-data-how-to-test-data-in-classification-learner-app#comment_789018
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/500549-after-training-data-how-to-test-data-in-classification-learner-app#comment_789018
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/500549-after-training-data-how-to-test-data-in-classification-learner-app#comment_790781
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/500549-after-training-data-how-to-test-data-in-classification-learner-app#comment_790781
Sign in to comment.