# edge

Find classification edge for support vector machine (SVM) classifier

## Syntax

## Description

returns the classification edge
(`e`

= edge(`SVMModel`

,`TBL`

,`ResponseVarName`

)`e`

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

using the predictor data in table
`TBL`

and the class labels in
`TBL.ResponseVarName`

.

The classification edge (`e`

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

returns the classification edge
(`e`

= edge(`SVMModel`

,`TBL`

,`Y`

)`e`

) for the SVM classifier `SVMModel`

using the predictor data in table `TBL`

and the class labels
in `Y`

.

## Examples

## Input Arguments

## More About

## Algorithms

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

*f*(

*x*) is the predicted score of observation

_{j}*j*for the positive class. However,

*m*=

_{j}*y*

_{j}*f*(

*x*) is commonly used to define the margin.

_{j}## References

[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.

## Extended Capabilities

## See Also

`ClassificationSVM`

| `CompactClassificationSVM`

| `loss`

| `predict`

| `margin`

| `resubEdge`

| `kfoldEdge`

| `fitcsvm`

**Introduced in R2014a**