필터 지우기
필터 지우기

The Treebagger give different results in 2012a and 2013a

조회 수: 1 (최근 30일)
xq
xq 2013년 4월 19일
I used
B = TreeBagger(NTrees(j),train_feats',train_labels');
and
Y = predict(B,test_feats');
to classification, in train_feats each column is a sample,the train_labels total of 30 categories,label from 0 to 29.
when I run the code in matlab 2012a the accuracy almost 90%,but when i update to 2013a the accuracy is less than 1%. The data and the code are intact, why the result is so different?
Does anyone have an explanation?

채택된 답변

Tom Lane
Tom Lane 2013년 4월 23일
This might be the explanation, and it includes a suggestion of how to avoid the problem:
http://www.mathworks.com/support/bugreports/927692
  댓글 수: 1
xq
xq 2013년 4월 23일
Thank you so much for your answer and advice. The answer is exactly the problem. I change the labels from ordinals to chars:
NewLabels{i} = num2str(labels(i));
problem solved!
Thank you again for your help.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by