i get Undefined variable "NaiveBayes" or class "NaiveBayes.fit".
Show older comments
Hi,
Hoping someone can help.
I'm using MATLAB2018b version and am attempting to use a Naive Bayes classifer on a dataset. However I get the following error when I run this line of code:-
(i've already loaded variables XtrA and YtrA)
nb = NaiveBayes.fit(XtrA, YtrA);
error:
Undefined variable "NaiveBayes" or class "NaiveBayes.fit".
nb = NaiveBayes.fit(XtrA, YtrA);
I've confirmed that I have the Statistics and Machine Learning toolbox installed by typing ver at command line:
Statistics and Machine Learning Toolbox Version 11.4 (R2018b)
Many thanks
Angela
Accepted Answer
More Answers (0)
Categories
Find more on Naive Bayes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!