FUNCTION REFERENCE
ClassificationSVM
Support vector machine classification model returned by fitcsvm.
Support vector machine classification model returned by fitcsvm.
Syntax
mdl = fitcsvm(X, Y)Stores support vectors, dual coefficients, bias, kernel settings and class names for binary classification. Evaluate with predict, resubLoss, loss and crossval.
Example
mdl = fitcsvm([-2; -1; 1; 2], [-1; -1; 1; 1]); class(mdl) % 'ClassificationSVM'Differences from MATLAB: Binary classification with linear, RBF and gaussian kernels (gaussian is RBF). Polynomial kernels, outlier fraction and custom kernel functions are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.