Metadata-Version: 2.4
Name: imlightgbm
Version: 0.1.1
Summary: LightGBM for label-imbalanced data with focal and weighted loss function
Author-email: RektPunk <rektpunk@gmail.com>
License-Expression: MIT
Project-URL: repository, https://github.com/RektPunk/Imbalance-LightGBM
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: lightgbm>=4.5.0
Requires-Dist: scikit-learn>=1.5.2
Dynamic: license-file

<div style="text-align: center;">
  <img src="https://capsule-render.vercel.app/api?type=transparent&height=150&color=gradient&text=imlightgbm&fontColor=0047AB&section=header&reversal=false&desc=Imbalanced-LightGBM&descAlignY=83&fontSize=80">
</div>
<p align="center">
  <a href="https://github.com/RektPunk/Imbalance-LightGBM/releases/latest">
    <img alt="release" src="https://img.shields.io/github/v/release/RektPunk/Imbalance-LightGBM.svg">
  </a>
  <a href="https://pypi.org/project/imlightgbm">
    <img alt="Pythonv" src="https://img.shields.io/pypi/pyversions/imlightgbm.svg?logo=python&logoColor=white">
  </a>
  <a href="https://github.com/RektPunk/Imbalance-LightGBM/blob/main/LICENSE">
    <img alt="License" src="https://img.shields.io/github/license/RektPunk/Imbalance-LightGBM.svg">
  </a>
  <a href="https://github.com/RektPunk/Imbalance-LightGBM/actions/workflows/lint.yaml">
    <img alt="Lint" src="https://github.com/RektPunk/Imbalance-LightGBM/actions/workflows/lint.yaml/badge.svg?branch=main">
  </a>
</p>


This repository contains implementations of weighted loss and focal loss functions specifically designed for classification problems using LightGBM.

## Installation
```bash
pip install imlightgbm
```

## Example
Please refer to the [**Examples**](https://github.com/RektPunk/Imbalance-LightGBM/tree/main/examples) provided for further clarification.


## Acknowledgements
This repository would not exist without the excellent work from:

- [LightGBM](https://github.com/microsoft/LightGBM)
- [Imbalance-XGBoost](https://github.com/jhwjhw0123/Imbalance-XGBoost)
