'FitPosterior' option for fitcecoc

조회 수: 2 (최근 30일)
Yoshihiro Yamada
Yoshihiro Yamada 2017년 8월 25일
댓글: Han zid 2018년 8월 19일
I am evaluating SVM ('fitcecoc' function) by applying my data 'pm_pareto_12456'. When I set 'FitPosterior' option 'true', I encountered unexpected result described as follows: I execute prediction by using original data. when 'FitPosterior' option is false, the result is same as original classification 'class_array_12456', however, when 'FitPosterior' option is true, some elements of 'predicted_class_12456_true' are different from 'class_array_12456'. I wonder if 'FitPosterior' option could affect the prediction results?
SVM_data.mat contains variables for my evaluation and SVM_Test.m is evaluation script. P.S. my matlab version is 2017a

답변 (1개)

Carl
Carl 2017년 8월 29일
편집: Carl 2017년 8월 29일
Hi Yoshihiro. See the documentation here for the 'FitPosterior' option in fitcecoc:
It mentions that when that option is set to true, it translates classification scores to posterior probabilities. The model will inherently use different values for its fitting and prediction. As you observed, this may end up with different results.
  댓글 수: 2
Yoshihiro Yamada
Yoshihiro Yamada 2017년 8월 30일
편집: Yoshihiro Yamada 2017년 8월 30일
Hi Carl.
According to your advice, I should accept instability of predicted results. Therefore, I tried to change another option to avoid instability and it works well! Thank you for your advice.
Han zid
Han zid 2018년 8월 19일
Hi Yoshihiro, I get to same probelem as yours , can you please help me with the option you used to solve this problem.

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by