Can cost in TreeBagger be larger than 1?
2 views (last 30 days)
Show older comments
I am using the treebagger to do classification between multi classes .But for my data, there is an important class which is easy to be predited to others.So I want to solve this problem by making the cost larger of that class.The default cost is 1(class i ~=j) and 0(class i~=j),I set one of the cost to be 2,but there is no change in myTreeBagger.cost. Can anyone help me ?
0 Comments
Answers (0)
See Also
Categories
Find more on 分类集成 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!