SharpLearning
SharpLearning copied to clipboard
GradientBoost: Add support for sample weights
Add support for sample weights to the GradientBoost 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 GBMDecisionTreeLearner, used by GradientBoost does not support sample weights, so adding sample weight support to the GradientBoost learners requires first adding it to the GBMDecisionTreeLearner. Adding sample weight support to the GBMDecisionTreeLearner, primarely requires using the wieghts in the loss functions: GradientBoost Loss
Following, sample wieght support can be added to the GradientBoost learners. The learners can be found here in the GradientBoost project: GradientBoost