is lightGBM custom eval metric usage possible?
See original GitHub issueHi,
Is a custom eval metric function usable with Optuna?
As the eval metric argument of LightGBMPruningCallback
type is a string, I can’t make it work.
Thanks and keep the good work!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
how to customize the metric function in lightgbm such as ks?
For custom evaluation metric: Python: https://github.com/Microsoft/LightGBM/blob/master/examples/python-guide/advanced_example.py ...
Read more >Provide Additional Custom Metric to LightGBM for Early ...
This is on version 3.2.1. On version 3.0.0, it seems like it's totally impossible to pass multiple custom evaluation metrics in the training...
Read more >Pass a custom evaluation metric to LightGBM | by Marco Gorelli
We learned how to pass a custom evaluation metric to LightGBM. This is useful when you have a task with an unusual evaluation...
Read more >Example of LGBM Custom Metric - Kaggle
Example of LGBM Custom Metric ... pandas as pd import category_encoders as ce from sklearn.model_selection import StratifiedKFold import lightgbm as lgb.
Read more >Parameters — LightGBM 3.3.3.99 documentation
LightGBM allows you to provide multiple evaluation metrics. Set this to true , if you want to use only the first metric for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @flamby,
Thanks for the good question! I wrote an example code to use a custom metric function with Optuna. https://gist.github.com/smly/5a5ddf968d59492b79e4cbf90b2d3430
Hope this code helps to solve your problem.
Thanks for the clarification @smly
and keep the good work!
closing then.