MathWorks - Mobile View
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
MathWorks
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out

Videos and Webinars

  • MathWorks
  • Videos
  • Videos Home
  • Search
  • Videos Home
  • Search
  • Contact sales
  • Trial software
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

Classify Data Using the Classification Learner App

Bernhard Suhm, MathWorks

Classification Learner lets you perform common supervised learning tasks such as interactively exploring your data, selecting features, specifying validation schemes, training models, and assessing results.

You can export classification models to the MATLAB® workspace, or generate MATLAB code to integrate models into applications.

Classification Learner is a new app in the statistics and machine learning tool box that lets you train models to classify data using supervised machine learning. Classification Learner lets you perform common machine learning tasks, such as importing data, specifying validation schemes, interactively exploring your data, selecting features, training models, and assessing model performance. You can choose from several classification types, including decision trees, support vector machines, nearest neighbors, and ensemble methods that include backed, boosted, and random subspace methods. You can also export classification models to the MATLAB workspace to generate predictions on new data, or generate MATLAB code to integrate train models into applications such as Computer Vision, Signal Processing, or Data Analytics.

You can launch Classification Learner by typing Classification Learner on the MATLAB command line, all by clicking on the Classification Learner app in the apps gallery. Classification Learner lets you import data from matrices or tables. The app can automatically identify your predictors and response variables based on your data type. The next step is to choose the validation scheme used to examine the predictive accuracy of the fitted models. Choose from k-fold cross validation, hold out, or resubstitution.

Pairwise scatterplots lets you explore your data for important predictors, outliers, and visual patterns or trends. When solving classification problems, there is no one size fits all. Different classifiers work best for different types of problems and data sets. The options provided in the classifier gallery are great starting points that are suitable for a range of different classification problems. If you're not sure which to choose, the pop up Tool Tip gives you a brief description of each classifier.

Training a new model is easy. First, simply choose one of the classifier presets in the gallery. Next, click on train. The current model pane displays useful information about your model, such as the classifier type, presets, selected features, and status of the model, if it is trained, untrained, or training. Once the model is trained, check the History List to see the accuracy of the classifier on the validation set.

Classification Learner lets you train multiple models very quickly. For each trained model, you can compare model performance by inspecting results in the scatter plot, confusion matrix, and ROC curves available in the plot section of the tool strip. On the scatter plot, cross syndicate misclassified points. Confusion matrix lets you assess how a currently selected classifier performed in each class. A dominantly diagonal confusion matrix indicates a good classifier, since all the predictor labels match the actual labels. Off diagonal numbers indicating misclassified points.

ROC or Receiver Operating Characteristic Curve, shows you true positive rate versus false positive rate for different thresholds of the classifier output. A perfect result with no misclassified points is a right angle at the top left of the plot. The area under the curve is a measure of the overall quality of the classifier. Based on your model assessment, if you decide that a model may be improved further, you can try removing features with low predictive power, or use the advanced options to change classifier settings.

After you create classification models interactively in Classification Learner, you can export your best performing model, shown by the green box. Click Export, and the model should appear in your MATLAB workspace. You can use this trained model to make predictions on new data. You can also generate MATLAB code for your best model to train the classifiers on new data, or integrate code into other machine learning applications.

When working with Classification Learner, help is always just a click away. Simply navigate to the documentation using the Help button on the top right to find all the information you need about Classification Learner. For example, the table here shows you guidance on choosing the right classifier depending on accuracy, speed, and memory trade-off you want to make.

To get additional information about Classification Learner, as well as see and download example datasets, please visit the Classification Learner page. You can access the page by clicking on apps, and then Classification Learner from the statistics and machine learning tool box product page. This concludes the video introduction to Classification Learner. Thank you for watching.

Related Products

  • Statistics and Machine Learning Toolbox

Learn More

Machine Learning Questions Asked and Answered: All About Model Validation
Forecast Electrical Load Using the Regression Learner App (3:42)
Machine Learning Challenges: Choosing the Best Classification Model and Avoiding Overfitting

VIEW SLIDESHOW

Five Interactive Apps for Machine Learning

Feedback

Featured Product

Statistics and Machine Learning Toolbox

  • Request Trial
  • Get Pricing

Up Next:

46:23
Solving Data Management and Analysis Challenges Using...

Related Videos:

9:00
An Introduction to Classification
34:31
Machine Learning with MATLAB: Getting Started with...
1:08:00
Data Analysis with Statistics and Curve Fitting Toolboxes
42:33
Tips and Tricks: Data Analysis and Surface Fitting with...

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web site

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contact sales
  • Trial software

Explore Products

  • MATLAB
  • Simulink
  • Student Software
  • Hardware Support
  • File Exchange

Try or Buy

  • Downloads
  • Trial Software
  • Contact Sales
  • Pricing and Licensing
  • How to Buy

Learn to Use

  • Documentation
  • Tutorials
  • Examples
  • Videos and Webinars
  • Training

Get Support

  • Installation Help
  • Answers
  • Consulting
  • License Center
  • Contact Support

About MathWorks

  • Careers
  • Newsroom
  • Social Mission
  • Contact Sales
  • About MathWorks

MathWorks

Accelerating the pace of engineering and science

MathWorks is the leading developer of mathematical computing software for engineers and scientists.

Discover…

  • Select a Web Site United States
  • Patents
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Application Status

© 1994-2021 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Join the conversation