CompactClassificationSVM
statistics: CompactClassificationSVM
A CompactClassificationSVM object is a compact version of a support
vectors machine model, ClassificationSVM.
The CompactClassificationSVM does not include the training data
resulting to a smaller classifier size, which can be used for making
predictions from new data, but not for tasks such as cross validation. It
can only be created from a ClassificationSVM model by using the
compact object method.
The available methods for a CompactClassificationSVM object
are:
predict
loss
margin
savemodel
See also: fitcsvm, ClassificationSVM
Source Code: CompactClassificationSVM
CompactClassificationSVM.NumPredictors is not documented.
CompactClassificationSVM.PredictorNames is not documented.
CompactClassificationSVM.ResponseName is not documented.
CompactClassificationSVM.ClassNames is not documented.
CompactClassificationSVM.Prior is not documented.
CompactClassificationSVM.Cost is not documented.
CompactClassificationSVM.ScoreTransform is not documented.
CompactClassificationSVM.Standardize is not documented.
CompactClassificationSVM.Sigma is not documented.
CompactClassificationSVM.Mu is not documented.
CompactClassificationSVM.ModelParameters is not documented.
CompactClassificationSVM.Model is not documented.
CompactClassificationSVM.Alpha is not documented.
CompactClassificationSVM.Beta is not documented.
CompactClassificationSVM.Bias is not documented.
CompactClassificationSVM.IsSupportVector is not documented.
CompactClassificationSVM.SupportVectorLabels is not documented.
CompactClassificationSVM.SupportVectors is not documented.
CompactClassificationSVM: labels = predict (obj, XC)
CompactClassificationSVM: [labels, scores] = predict (obj, XC)
labels = predict (obj, XC) returns the vector of
labels predicted for the corresponding instances in XC, using the
trained Support Vector Machine classification compact model, obj.
For one-class SVM model, +1 or -1 is returned.
CompactClassificationSVM class object.
[labels, scores] = predict (obj, XC also
returns scores, which contains the decision values for each
prediction. Alternatively, scores can contain the posterior
probabilities if the ScoreTransform has been previously set using the
fitPosterior method.
See also: fitcsvm, ClassificationSVM.fitPosterior
CompactClassificationSVM: m = margin (obj, X, Y)
m = margin (obj, X, Y) returns the
classification margins for the trained support vector machine (SVM)
classifier obj using the sample data in X and the class
labels in Y. It supports only binary classifier models. The
classification margin is commonly defined as m = yf(x),
where f(x) is the classification score and y is the true
class label corresponding to x. A greater margin indicates a better
model.
CompactClassificationSVM object.
See also: fitcsvm, CompactClassificationSVM
CompactClassificationSVM: L = loss (obj, X, Y)
CompactClassificationSVM: L = loss (…, name, value)
L = loss (obj, X, Y) returns the
predictive accuracy of support vector machine (SVM) classification models.
Comparing the same type of loss across multiple models allows you to
identify which model is more accurate, with a lower loss indicating
superior predictive performance. It supports only binary classifier
models.
CompactClassificationSVM object.
L = loss (…, Name, Value) returns the
aforementioned results with additional properties specified by
Name-Value pair arguments listed below.
| Name | Value | |
|---|---|---|
"LossFun" | Loss function, specified as a built-in
loss function name. It accepts the following options: (Default is
’classiferror’)
| |
"Weights" | Specified as a numeric vector which weighs each observation (row) in X. The size of Weights must be equal to the number of rows in X. The default value is: ones(size(X,1),1) |
See also: fitcsvm, ClassificationSVM
CompactClassificationSVM: savemodel (obj, filename)
savemodel (obj, filename) saves each property of a
CompactClassificationSVM object into an Octave binary file, the name
of which is specified in filename, along with an extra variable,
which defines the type classification object these variables constitute.
Use loadmodel in order to load a classification object into
Octave’s workspace.
See also: loadmodel, fitcsvm, ClassificationSVM, CompactClassificationSVM