FUNCTION REFERENCE
ClassificationNaiveBayes
Naive Bayes classification model returned by fitcnb.
Naive Bayes classification model returned by fitcnb.
Syntax
mdl = fitcnb(X, Y)Stores per-class feature distribution parameters and class priors. Evaluate with predict, resubLoss, loss and crossval.
Example
mdl = fitcnb([0; 0.2; 2; 2.2], [1; 1; 2; 2]); class(mdl) % 'ClassificationNaiveBayes'Differences from MATLAB: Gaussian ('normal') distributions on numeric predictors only. Kernel and multinomial ('mn') distributions are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.