Categorical to Numerals variables

1 次查看(过去 30 天)
Tanvir Kaisar
Tanvir Kaisar 2019-2-18
评论: dpb 2019-2-18
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 个评论
dpb
dpb 2019-2-18
Just cast the categorical variable to double() or single() and tell mnrfit whether they're nominal, ordinal, ...

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by