1

I have a highly imbalanced data and want to up-sample the minority class to improve accuracy (the minority class is the object of interest).

I tried using the "sampsize" option in the "randomForest" function - but it only allows for down-sampling. I read someplace, the "classwt" option can be used - but i am not sure how to use it.

Can anyone suggest a way to run Random Forest in R by up-sampling the minority class (using the "randomForest" library or other such libraries).

Thanks.

4

1 回答 1

0

最简单的方法是只复制少数类的数据,但随后您会丢失 OOB 估计值。

您想要直接执行的操作似乎没有实现,另请参见此问题

于 2013-02-26T04:03:04.743 回答