How can I run fitensemble with the 'RUSBoost' method
2 views (last 30 days)
Show older comments
Hi,
I was trying to run the example for the classification with imbalanced data provided in the 'Ensemble Methods' (<http://www.mathworks.com/help/stats/ensemble-methods.html#btgw1m1)>.
I downloaded the forestcover dataset, partition the data, and then tried to run the following lines of codes: t = ClassificationTree.template('minleaf',5); rusTree = fitensemble(covtype(istrain,:),Y(istrain),'RUSBoost',1000,t,'LearnRate',0.1,'nprint',100);
However, I get the this error: "Error using fitensemble (line 292) You cannot fit an ensemble for RUSBoost because it is not an ensemble method."
Someone can help? Thanks, V.
0 Comments
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!