Categorical to Numerals variables
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How I can deal with the categorical variables for multinomial logistic regression, SVM and ANN for a classification problem?
My response is a categorical variable (yes,no) and two of predictors are also categorical (red, green, black, blue and high, medium, low).
1 Commento
dpb
il 18 Feb 2019
Just cast the categorical variable to double() or single() and tell mnrfit whether they're nominal, ordinal, ...
Risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with Statistics and Machine Learning Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!