How do I relabel classes into one sub group?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Adam Danz
le 11 Fév 2020
Modifié(e) : Adam Danz
le 11 Fév 2020
load fisheriris
idx = ~ismember(species, 'setosa');
species(idx) = {'abnormal'};
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!