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

1 回表示 (過去 30 日間)
OUJAOURA MUSTAPHA
OUJAOURA MUSTAPHA 2020 年 2 月 19 日
編集済み: OUJAOURA MUSTAPHA 2020 年 2 月 19 日
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by