Resubstitution classification margins for naive Bayes classifier
returns the resubstitutionClassification Margin(m
= resubMargin(Mdl
)m
) for the naive Bayes classifierMdl
using the training data stored inMdl.X
and the corresponding class labels stored inMdl.Y
.
m
is returned as a numeric vector with the same length asY
. The software estimates each entry ofm
using the trained naive Bayes classifierMdl
, the corresponding row ofX
, and the true class labelY
.