- Train Your Model: Use the Classification Learner app to train your model with your dataset.
- Test Your Model: After training, test your model using a validation set or the same dataset if you don't have a separate validation set.
- Confusion Matrix: Within the app, you can view the confusion matrix, which shows the true positives, false positives, false negatives, and true negatives for each class.
- Export the Model: Export your trained model to the MATLAB workspace by clicking the "Export Model" button.
- Predict Labels: Use the exported model to predict labels for your dataset.
- Compare Predictions: Compare the predicted labels with the actual labels to find where the discrepancies are.
- Find Misclassified Samples: Using the comparison result, identify the indices of the false positives and false negatives.
- Analyze the Misclassified Samples: Now that you have the indices of the misclassified samples, you can examine these specific cases in your dataset to understand where and why the classifier is making mistake.
Extracting information from confusion matrix, classificationLearner
3 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
Currently I am working with classificationLearner app. I am wondering is there a way to see, in my data, where is classifier making mistake? To be more precise, is it possible to see exactly where in my data false positives or false negatives are ocuring?
Thank you
0 个评论
回答(1 个)
Aditya
2024-1-31
When you're working with the Classification Learner app in MATLAB, you can indeed investigate where your classifier is making mistakes in terms of false positives and false negatives. Here's a step-by-step guide on how you can do this:
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!