Metadata-Version: 2.1
Name: imlightgbm
Version: 0.0.3
Summary: LightGBM for label-imbalanced data with focal and weighted loss function
Home-page: https://github.com/RektPunk/Imbalance-LightGBM
License: MIT
Author: RektPunk
Author-email: rektpunk@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: lightgbm (>=4.5.0,<5.0.0)
Requires-Dist: scikit-learn (>=1.5.2,<2.0.0)
Project-URL: Repository, https://github.com/RektPunk/Imbalance-LightGBM
Description-Content-Type: text/markdown

<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)

