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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!