SharpLearning icon indicating copy to clipboard operation
SharpLearning copied to clipboard

RandomForest: Add support for sample weights

Open mdabros opened this issue 9 years ago • 0 comments

Add support for sample weights to the RandomForest learners. This will make it possible to handle imbalanced datasets directly in the learners, instead of under/oversampling the dataset inorder to balance it.

The DecisionTreeLearners, used by RandomForest, already support sample weights, so implementing it only involves setting up the sample weights and forwarding the weights to the DecisionTreeLearner for each tree. The learners can be found here in the RandomForest project: RandomForest

mdabros avatar Sep 24 '17 19:09 mdabros