Documentation

Support Vector Machines

Support vector machines for binary or multiclass classification

To train a binary SVM model or a multiclass ECOC model containing SVM binary learners, use the Classification Learner App. Alternatively, train an SVM model using fitcsvm or train an ECOC model by creating an SVM template using templateSVM, and then passing it and the training data to fitcecoc. After training either type of classifier, label new observations or estimate posterior probabilities by passing the model and predictor data to predict.

Apps

Classification Learner Train models to classify data using supervised machine learning

Functions

fitcsvm Train binary support vector machine classifier
predict Predict labels for support vector machine classifiers
templateSVM Support vector machine template
fitcecoc Fit multiclass models for support vector machines or other classifiers
templateECOC Error-correcting output codes learner template
predict Predict labels for error-correcting output code multiclass classifiers
fitSVMPosterior Fit posterior probabilities
loss Classification error for support vector machine classifiers
crossval Cross-validated support vector machine classifier
edge Classification edge for support vector machine classifiers
margin Classification margins for support vector machine classifiers
resume Resume training support vector machine classifier
loss Classification loss for error-correcting output code multiclass classifiers
crossval Cross-validated, error-correcting output code multiclass model
designecoc Coding matrix for reducing error-correcting output code to binary

Classes

ClassificationSVM Support vector machine for binary classification
ClassificationECOC Multiclass model for support vector machines or other classifiers
CompactClassificationSVM Compact support vector machine for binary classification
CompactClassificationECOC Compact multiclass model for support vector machines or other classifiers
ClassificationPartitionedModel Cross-validated classification model
ClassificationPartitionedECOC Cross-validated multiclass model for support vector machines or other classifiers

Was this topic helpful?