Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Classification edge for naive Bayes classifiers

`e = edge(Mdl,tbl,ResponseVarName)`

`e = edge(Mdl,tbl,Y)`

`e = edge(Mdl,X,Y)`

`e = edge(___,Name,Value)`

returns the classification edge
(`e`

= edge(`Mdl`

,`tbl`

,`ResponseVarName`

)`e`

) for the naive Bayes classifier `Mdl`

using the predictor data in table `tbl`

and the class labels
in `tbl.ResponseVarName`

.

computes the classification edge with additional options specified by one or
more `e`

= edge(___,`Name,Value`

)`Name,Value`

pair arguments, using any of the previous
syntaxes.

`ClassificationNaiveBayes`

| `CompactClassificationNaiveBayes`

| `fitcnb`

| `loss`

| `margin`

| `predict`

| `resubEdge`

| `resubLoss`