FUNCTION REFERENCE
fitrsvm
Fit epsilon-insensitive support vector regression with a converged dual SMO solve.
Fit epsilon-insensitive support vector regression with a converged dual SMO solve.
Syntax
mdl = fitrsvm(X,Y)Syntax
mdl = fitrsvm(tbl,'response~a+b'); mdl = fitrsvm(tbl,'ResponseVarName')Syntax
mdl = fitrsvm(X,Y,'KernelFunction','gaussian','KernelScale',1,'BoxConstraint',2,'Epsilon',0.1,'Standardize',true)KernelFunction accepts linear, gaussian/rbf and polynomial; PolynomialOrder defaults to 3. KernelScale divides predictor coordinates; the RBF kernel is exp(-squaredDistance/KernelScale^2). Standardize uses sample standard deviations. Alpha contains signed nonzero dual coefficients in SupportVectors order; IsSupportVector indexes the retained training rows. Bias is unpenalized. Default BoxConstraint is iqr(Y)/1.349 for gaussian/rbf and 1 for linear/polynomial. Default Epsilon is iqr(Y)/13.49 (0.1 for zero IQR). A zero-IQR gaussian/rbf response uses C=1.
Example
m=fitrsvm([0;1;2;3],[0;1;2;3],'BoxConstraint',2,'Epsilon',0.1); predict(m,[0.5;2.5])Differences from MATLAB: KernelScale='auto' uses a seeded sampled median-distance heuristic. The solver supports 2048 rows and 100000000 kernel element products, checks a 1e-9 dual KKT gap and errors on work or convergence limits.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.