MATLAB Answers


How can I run fitensemble with the 'RUSBoost' method

Asked by victorp
on 27 Apr 2013


I was trying to run the example for the classification with imbalanced data provided in the 'Ensemble Methods' (<>.

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.


Log in to comment.

0 Answers

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!