-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Native support for Focal Loss #3706
Comments
thank you, a good feature request! For use regression objective for classification, I think LightGBM already supports it. |
@btrotta @shiyu1994 are you interesting in implementing Focal loss? |
I think sklearn API can be used as well, but the most general class
|
I can implement it. |
Closed in favor of being in #2302. We decided to keep all feature requests in one place. Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature. |
Could you add native support for Focal Loss? There are implementations for LGBM and XGB. They show better performance on imbalanced data, but they are slow and clunky. Also allow to use MSE for classification (also known as square loss, it's a proper scorer function and in some cases could be better than LogLoss). More classification losses could be added to stand out in this department (since all GBDTs algorithms use LogLoss and nothing else).
The text was updated successfully, but these errors were encountered: