error : Unable to use a value of type ClassificationNaiveBayes as an index.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Naive Bayes dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!