필터 지우기
필터 지우기

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