How do I relabel classes into one sub group?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
tinkiewinkie
am 11 Feb. 2020
Bearbeitet: Adam Danz
am 12 Feb. 2020
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 Kommentare
Akzeptierte Antwort
Adam Danz
am 11 Feb. 2020
Bearbeitet: Adam Danz
am 11 Feb. 2020
load fisheriris
idx = ~ismember(species, 'setosa');
species(idx) = {'abnormal'};
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Support Vector Machine Classification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!