Chapter 2
Refining Your Model
MATLAB® removes a lot of the hassle of figuring out which model works best with its Classification Learner app. You can also use MATLAB to judge how well your model is performing, and verify your results.
Using Classification Learner, you can perform common machine learning tasks such as interactively exploring your data, selecting features, specifying validation schemes, training multiple models in parallel, and assessing results.
With the app you can:
- Assess classifier performance using confusion matrices, ROC curves, or scatter plots
- Compare model accuracy using the misclassification rate on the validation set
- Improve model accuracy with advanced options and feature selection
- Export the best model to the workspace to make predictions on new data
- Generate MATLAB code to train classifiers on new data
Statistics and Machine Learning Toolbox Apps
Classification Learner App Supports:
Discriminant analysis classifiers
Linear, quadratic
Decision trees
Fine tree, medium tree, coarse tree
Support vector machines
Linear SVM, fine Gaussian SVM, medium Gaussian SVM, coarse Gaussian SVM, quadratic SVM, cubic SVM, linear, quadratic
Nearest neighbor classifiers
Fine KNN, medium KNN, coarse KNN, cosine KNN, cubic KNN, weighted KNN
Naive Bayes classifiers
Gaussian NB, Kernel NB
Ensemble classifiers
Boosted trees (AdaBoost, RUSBoost), bagged trees, subspace KNN, subspace discriminant
Neural Network classifiers
Narrow, Medium, Wide, Bilayered, Trilayered
Kernel Approximation classifiers
SVM Kernel, Logistic Regression
Logistic regression classifier

See how the Classification Learner app works
TEST YOUR KNOWLEDGE!
The Classification Learner app uses confusion matrices, ROC curves, and scatter plots to assess classifier performance. What else can you use to judge a model’s accuracy?
NICE TRY!
The correct answer is Misclassification rate on the validation set, which is generally used to compare model accuracy rates.
NICE TRY!
The misclassification rate on the training data doesn't provide the same view of accuracy as the misclassification rate on the validation set.
The correct answer is Misclassification rate on the validation set, which is generally used to compare model accuracy rates.
YOU’RE RIGHT!
The misclassification rate on the validation set is a good way to assess and compare model accuracy.