Categorical to Numerals variables

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 commentaire

dpb
dpb le 18 Fév 2019
Just cast the categorical variable to double() or single() and tell mnrfit whether they're nominal, ordinal, ...

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange

Commenté :

dpb
le 18 Fév 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by