Main Content

Log unconditional probability density for naive Bayes classifier

returns the log Unconditional Probability Density (`lp`

= logp(`Mdl`

,`tbl`

)`lp`

) of the observations
(rows) in `tbl`

using the naive Bayes model
`Mdl`

. You can use `lp`

to identify
outliers in the training data.

`ClassificationNaiveBayes`

| `CompactClassificationNaiveBayes`

| `fitcnb`

| `predict`