FUNCTION REFERENCE

ClassificationLinear

Regularized linear classification model returned by fitclinear.

Regularized linear classification model returned by fitclinear.

Syntax

mdl = fitclinear(X, Y)

Stores linear weight vector, bias, learner type (logistic or SVM) and regularization strength. Evaluate with predict, loss and crossval.

Example

mdl = fitclinear([-2; -1; 1; 2], [-1; -1; 1; 1]); class(mdl)   % 'ClassificationLinear'

Differences from MATLAB: Dense numeric predictors; binary classification only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.