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

How can I run fitensemble with the 'RUSBoost' method

Asked by victorp on 27 Apr 2013

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

victorp

Products

0 Answers

Contact us