Categorical to Numerals variables
조회 수: 1 (최근 30일)
이전 댓글 표시
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
2019년 2월 18일
Just cast the categorical variable to double() or single() and tell mnrfit whether they're nominal, ordinal, ...
답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!