error : Unable to use a value of type ClassificationNaiveBayes as an index.

1 vue (au cours des 30 derniers jours)
OUJAOURA MUSTAPHA
OUJAOURA MUSTAPHA le 19 Fév 2020
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

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by