MATLAB Answers

What different parameters can I use to see any effect it has on the model?

1 view (last 30 days)
Yooya yooya
Yooya yooya on 11 Dec 2020
Answered: Sai Veeramachaneni on 14 Dec 2020
% Train the classifier
Nb = NaiveBayes.fit(Xtrain,Ytrain,'Distribution',dist);

Answers (1)

Sai Veeramachaneni
Sai Veeramachaneni on 14 Dec 2020
You can try all the parameters of NaiveBayes.fit as specified here.
For your information - According to the R2018a Release Notes NaiveBayes.fit (fitNaiveBayes) is replaced with fitcnb

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!