Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Find classification edge for support vector machine (SVM) classifier by resubstitution

`e = resubEdge(SVMModel)`

returns the resubstitution Classification Edge (`e`

= resubEdge(`SVMModel`

)`e`

) for the support vector
machine (SVM) classifier `SVMModel`

using the training data stored
in `SVMModel.X`

and the corresponding class labels stored in
`SVMModel.Y`

.

The classification edge is a scalar value that represents the weighted mean of the classification margins.

For binary classification, the software defines the margin for
observation *j*, *m _{j}*, as

$${m}_{j}=2{y}_{j}f({x}_{j}),$$

where *y _{j}* ∊ {-1,1}, and

[1] Christianini, N., and J. C. Shawe-Taylor. *An
Introduction to Support Vector Machines and Other Kernel-Based Learning
Methods*. Cambridge, UK: Cambridge University Press, 2000.

`ClassificationSVM`

| `CompactClassificationSVM`

| `edge`

| `fitcsvm`

| `resubLoss`

| `resubMargin`