discardSupportVectors
Discard support vectors of linear SVM binary learners in ECOC model
Description
Mdl = discardSupportVectors(MdlSV)Mdl) from the trained multiclass ECOC model
                    (MdlSV), which contains at least one linear
                    CompactClassificationSVM binary learner. Both
                    Mdl and MdlSV are objects of the same
                type, either ClassificationECOC objects or CompactClassificationECOC objects.
Mdl has these characteristics:
- The - Alpha,- SupportVectors, and- SupportVectorLabelsproperties of all the linear SVM binary learners are empty (- []).
- If you display any linear SVM binary learners stored in the cell array of trained models - Mdl.BinaryLearners, the software lists the- Betaproperty instead of- Alpha.
Examples
Input Arguments
More About
Tips
- By default and for efficiency, - fitcecocempties the- Alpha,- SupportVectorLabels, and- SupportVectorsproperties for all linear SVM binary learners.- fitcecoclists- Beta, rather than- Alpha, in the model display.- To store - Alpha,- SupportVectorLabels, and- SupportVectors, pass a linear SVM template that specifies storing support vectors to- fitcecoc. For example, enter:- t = templateSVM('SaveSupportVectors',true) Mdl = fitcecoc(X,Y,'Learners',t); - You can remove the support vectors and related values by passing the resulting - ClassificationECOCmodel to- discardSupportVectors.
Algorithms
predict and resubPredict estimate SVM scores
                f(x) for each linear SVM binary learner in an
            ECOC model using 
β is the Beta property and
                b is the Bias property of the binary
            learners. You can access these properties for each linear SVM binary learner in the cell
            array Mdl.BinaryLearners. For more details on the SVM score
            calculation, see Support Vector Machines for Binary Classification.
Extended Capabilities
Version History
Introduced in R2015a