Classification learner - categorical data import not working
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Arpan Kusari
le 4 Mai 2016
Réponse apportée : Brendan Hamm
le 4 Mai 2016
Hi, I am trying to use the classification learner app. I have categorical variable as a response variable but I cant seem to see it in the data workspace. How can I get the variable to show up in data import?
0 commentaires
Réponse acceptée
Brendan Hamm
le 4 Mai 2016
The classification learner app only works with matrices and tables, but the latter can hold a categorical variable. SO if your data is in matrix X and your categorical variable is c, pleace them in a table as follows:
T = [array2table(X) c];
Now you can classify away.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Classification Learner App 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!