discard support vectors for linear support vector machine (svm) regression model -凯发k8网页登录
class: classreg.learning.regr.compactregressionsvm, regressionsvm
package: classreg.learning.regr
discard support vectors for linear support vector machine (svm) regression model
syntax
mdlout = discardsupportvectors(mdl)
description
returns the trained, linear support vector machine (svm) regression model
mdlout
= discardsupportvectors(mdl
)mdlout
, which is similar to the trained, linear svm regression model
mdl
, except:
the
alpha
andsupportvectors
properties are empty ([]
).if you display
mdlout
, the software lists thebeta
property instead of thealpha
property.
input arguments
output arguments
examples
tips
for a trained, linear svm regression model, the supportvectors
property
is an nsv-by-p matrix.
nsv is the number of support vectors (at most
the training sample size) and p is the number of predictor variables. if
any of the predictors are categorical, then p includes the number of dummy
variables necessary to account for all of the categorical predictor levels. the
alpha
property is a vector with
nsv elements.
the supportvectors
and alpha
properties can be large
for complex data sets that contain many observations or examples. however, the
beta
property is a vector with p elements, which may
be considerably smaller. you can use a trained svm regression model to predict response values
even if you discard the support vectors because the and methods use beta
to
compute the predicted responses.
if the trained, linear svm regression model has many support vectors, use discardsupportvectors
to reduce the amount of disk space that the
trained, linear svm regression model consumes. you can display the size of the support vector
matrix by entering size(mdlin.supportvectors)
.
algorithms
the and estimate response values using the formula
where:
β is the beta value, stored as
mdl.beta
.β0 is the bias value, stored as
mdl.bias
.x
is the training data.s
is the kernel scale value, stored asmdl.kernelparameters.scale
.
in this way, the software can use the value of mdl.beta
to make
predictions even after discarding the support vectors.
extended capabilities
version history
introduced in r2015bsee also
fitrsvm
| regressionsvm
| compactregressionsvm
| |