Main Content

Resubstitution classification edge

returns the weighted resubstitution Classification Edge (`e`

= resubEdge(`Mdl`

)`e`

)
for the trained classification model `Mdl`

using the predictor data
stored in `Mdl.X`

, the corresponding true class labels stored in
`Mdl.Y`

, and the observation weights stored in
`Mdl.W`

.

specifies whether to include interaction terms in computations. This syntax applies only to
generalized additive models.`e`

= resubEdge(`Mdl`

,'IncludeInteractions',`includeInteractions`

)

`resubEdge`

computes the classification edge according to the
corresponding `edge`

function of the object (`Mdl`

). For
a model-specific description, see the `edge`

function reference pages in
the following table.

Model | Classification Model Object (`Mdl` ) | `edge` Object Function |
---|---|---|

Generalized additive model | `ClassificationGAM` | `edge` |

k-nearest neighbor model | `ClassificationKNN` | `edge` |

Naive Bayes model | `ClassificationNaiveBayes` | `edge` |

Neural network model | `ClassificationNeuralNetwork` | `edge` |

Support vector machine for one-class and binary classification | `ClassificationSVM` | `edge` |