Resubstitution classification margins for naive Bayes classifier

returns
the resubstitution Classification Margin (`m`

= resubMargin(`Mdl`

)`m`

) for the naive Bayes
classifier `Mdl`

using the training data stored in
`Mdl.X`

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

.

`m`

is returned as a numeric vector with the same length as
`Y`

. The software estimates each entry of
`m`

using the trained naive Bayes classifier
`Mdl`

, the corresponding row of `X`

, and
the true class label `Y`

.

`ClassificationSVM`

| `CompactClassificationSVM`

| `fitcsvm`

| `margin`

| `resubEdge`

| `resubLoss`