predict() returning 0

Hi, I am trying to test the results of a fitcsvm model, as shown below:
SVM_1_2 = fitcsvm(training_space,labels);
[label,score] = predict(SVM_1_2,space);
Where training_space is a sub_space of the total space. label is always an array full of zero, even for the points in training_space
I do not understand why predict is not giving me the predicted class of all the points in space. Can anyone help me, please?

1 件のコメント

the cyclist
the cyclist 2018 年 5 月 17 日
It's pretty difficult to help here, without the data. Can you upload the data (or a small sample that shows the same problem) in a MAT file?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDownloads についてさらに検索

質問済み:

2018 年 5 月 17 日

コメント済み:

2018 年 5 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by