error : Unable to use a value of type ClassificationNaiveBayes as an index.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I trained a Naive Bayes model using:
nb = fitcnb(x, t, 'Distribution','kernel');
but when I try to classify new data :
i = predict(nb,values);
I got this error : Unable to use a value of type ClassificationNaiveBayes as an index.
what's wrong? Can anyone help me please?
PS: I use Matlab 2019b
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Naive Bayes finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!