Borrar filtros
Borrar filtros

Categorical to Numerals variables

1 visualización (últimos 30 días)
Tanvir Kaisar
Tanvir Kaisar el 18 de Feb. de 2019
Comentada: dpb el 18 de Feb. de 2019
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 comentario
dpb
dpb el 18 de Feb. de 2019
Just cast the categorical variable to double() or single() and tell mnrfit whether they're nominal, ordinal, ...

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Get Started with Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by