-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Implement class_weight in HistGradientBoostingClassifier #14735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
great idea, |
sample weights support will be available in 0.23 which should be out soon.
Let's avoid that kind of phrasing please. |
great news thanks |
as it is written : result in poor estimates of the individual class probabilities is_unbalance 🔗︎, default = false, type = bool, aliases: unbalance, unbalanced_sets used only in binary and multiclassova applications set this to true if training data are unbalanced Note: while enabling this should increase the overall performance metric of your model, it will also result in poor estimates of the individual class probabilities |
or https://lightgbm.readthedocs.io/en/latest/pythonapi/lightgbm.LGBMClassifier.html |
Came here to look for this Issue and add my +1! @NicolasHug wrote:
Happy to have sample_weights support, but that doesn't really help for my use case. Class weights generally need to be tuned like a hyperparameter, and I can't do that using, say, GridSearchCV because there is no class_weight param. |
Just a reminder/note to implement
class_weight
[="balanced"] for this new algorithm.Looking forward to when this will be implemented.
If anyone has any interim suggestions for dealing with imbalanced data with this algorithm, include them below.
Cheers.
The text was updated successfully, but these errors were encountered: