How do I relabel classes into one sub group?
1 回表示 (過去 30 日間)
古いコメントを表示
Suppose I have 3 different classes below, how to I relabel 'versicolor' and 'virginica' into another class named 'abnormal' temporary because I want to do classification for 'setosa' and 'abnormal' using fitcsvm function first and later I will need to relabel the class again for another fitcsvm classifcation model.
0 件のコメント
採用された回答
Adam Danz
2020 年 2 月 11 日
編集済み: Adam Danz
2020 年 2 月 11 日
load fisheriris
idx = ~ismember(species, 'setosa');
species(idx) = {'abnormal'};
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!