https://github.com/orchardbirds/bokbokbok
Custom Loss Functions and Evaluation Metrics for XGBoost and LightGBM
https://github.com/orchardbirds/bokbokbok
binary-classification custom-loss-functions evaluation-metrics focal-loss lightgbm loss-functions regression rmspe xgboost
Last synced: 6 months ago
JSON representation
Custom Loss Functions and Evaluation Metrics for XGBoost and LightGBM
- Host: GitHub
- URL: https://github.com/orchardbirds/bokbokbok
- Owner: orchardbirds
- License: mit
- Created: 2021-03-12T14:42:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T19:08:59.000Z (7 months ago)
- Last Synced: 2025-04-10T20:38:36.115Z (7 months ago)
- Topics: binary-classification, custom-loss-functions, evaluation-metrics, focal-loss, lightgbm, loss-functions, regression, rmspe, xgboost
- Language: Python
- Homepage: https://orchardbirds.github.io/bokbokbok/
- Size: 561 KB
- Stars: 36
- Watchers: 1
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

[](#)
[](#)
[](#)

# bokbokbok
## Overview
**bokbokbok** is a python package that enables you to use Custom Loss Functions and Evaluation Metrics for XGBoost and LightGBM.
Main features:
- [Weighted Cross Entropy](https://orchardbirds.github.io/bokbokbok/tutorials/weighted_cross_entropy.html)
- [Weighted Focal Loss](https://orchardbirds.github.io/bokbokbok/tutorials/focal_loss.html)
- [Log Cosh Loss](https://orchardbirds.github.io/bokbokbok/tutorials/log_cosh_loss.html)
- [Root Mean Squared Percentage Error](https://orchardbirds.github.io/bokbokbok/tutorials/RMSPE.html)
- [F1 score](https://orchardbirds.github.io/bokbokbok/tutorials/F1_score.html)
- [Quadratic Weighted Kappa](https://orchardbirds.github.io/bokbokbok/tutorials/quadratic_weighted_kappa.html)
## Installation
```bash
pip install bokbokbok
```
## Documentation
The documentation can [be found here.](https://orchardbirds.github.io/bokbokbok/)
## Contributing
To learn more about making a contribution to bokbokbok, please see [CONTRIBUTING.md.](https://github.com/orchardbirds/bokbokbok/blob/main/CONTRIBUTING.md)