How do you perform nominal multi class logistic regression

조회 수: 8 (최근 30일)
Jason Gunther
Jason Gunther 2017년 8월 31일
편집: Jason Gunther 2017년 9월 15일
I'm performing logistic regression on with 6 nominal categories "A-F". I'm using fitcecoc. Which option should I specify for 'Coding' to perform nominal classification?

채택된 답변

Chris Perkins
Chris Perkins 2017년 9월 7일
Hi Jason,
You should be able to use the example 'Train Multiclass Linear Classification Model' on the documentation page for "fitcecoc": https://www.mathworks.com/help/stats/fitcecoc.html
This example uses categoricals, which by default are nominal, as input to "fitcecoc". See more about categoricals at the documentation page: http://www.mathworks.com/help/matlab/ref/categorical.html
You shouldn't need to set 'Coding' to achieve nominal classification.
Good luck!
  댓글 수: 1
Jason Gunther
Jason Gunther 2017년 9월 15일
편집: Jason Gunther 2017년 9월 15일
how does this compare to using multinomial logistic regression, mnrfit? The number of learners is 15 in the case fitcoec and 5 in the case of mnrfit.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Classification Ensembles에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by