How can I deal with categorical variables in classification algorithms?

2 次查看(过去 30 天)
I am new to MATLAB.
I am trying to apply SVM, Logistic regression and ANN to my dataset that contains both numerals and categorical variables. In the case of SVM I have found CategoricalPredictors argument that takes care of the categorical variables automatically. However, for mnrfit and ann, I cannot find similar argument. How can I covert those categorical variables in the case of Logistic regression and ANN?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 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