Metadata-Version: 2.4
Name: dragon-ml-toolbox
Version: 7.0.0
Summary: A collection of tools for data science and machine learning projects.
Author-email: Karl Loza <luigiloza@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/DrAg0n-BoRn/ML_tools
Project-URL: Changelog, https://github.com/DrAg0n-BoRn/ML_tools/blob/master/CHANGELOG.md
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-THIRD-PARTY.md
Provides-Extra: base
Requires-Dist: pandas; extra == "base"
Requires-Dist: numpy; extra == "base"
Requires-Dist: polars; extra == "base"
Requires-Dist: joblib; extra == "base"
Provides-Extra: ml
Requires-Dist: numpy>=2.0; extra == "ml"
Requires-Dist: pandas; extra == "ml"
Requires-Dist: polars; extra == "ml"
Requires-Dist: joblib; extra == "ml"
Requires-Dist: scikit-learn; extra == "ml"
Requires-Dist: matplotlib; extra == "ml"
Requires-Dist: seaborn; extra == "ml"
Requires-Dist: imbalanced-learn; extra == "ml"
Requires-Dist: ipython; extra == "ml"
Requires-Dist: ipykernel; extra == "ml"
Requires-Dist: notebook; extra == "ml"
Requires-Dist: jupyterlab; extra == "ml"
Requires-Dist: ipywidgets; extra == "ml"
Requires-Dist: xgboost; extra == "ml"
Requires-Dist: lightgbm; extra == "ml"
Requires-Dist: shap; extra == "ml"
Requires-Dist: tqdm; extra == "ml"
Requires-Dist: Pillow; extra == "ml"
Requires-Dist: evotorch; extra == "ml"
Provides-Extra: mice
Requires-Dist: numpy<2.0; extra == "mice"
Requires-Dist: pandas; extra == "mice"
Requires-Dist: polars; extra == "mice"
Requires-Dist: joblib; extra == "mice"
Requires-Dist: miceforest>=6.0.0; extra == "mice"
Requires-Dist: plotnine>=0.12; extra == "mice"
Requires-Dist: matplotlib; extra == "mice"
Requires-Dist: statsmodels; extra == "mice"
Requires-Dist: lightgbm<=4.5.0; extra == "mice"
Requires-Dist: shap; extra == "mice"
Provides-Extra: pytorch
Requires-Dist: torch; extra == "pytorch"
Requires-Dist: torchvision; extra == "pytorch"
Provides-Extra: excel
Requires-Dist: pandas; extra == "excel"
Requires-Dist: openpyxl; extra == "excel"
Requires-Dist: ipython; extra == "excel"
Requires-Dist: ipykernel; extra == "excel"
Requires-Dist: notebook; extra == "excel"
Requires-Dist: jupyterlab; extra == "excel"
Requires-Dist: ipywidgets; extra == "excel"
Provides-Extra: gui-boost
Requires-Dist: numpy; extra == "gui-boost"
Requires-Dist: joblib; extra == "gui-boost"
Requires-Dist: FreeSimpleGUI>=5.2; extra == "gui-boost"
Requires-Dist: xgboost; extra == "gui-boost"
Requires-Dist: lightgbm; extra == "gui-boost"
Provides-Extra: gui-torch
Requires-Dist: numpy; extra == "gui-torch"
Requires-Dist: FreeSimpleGUI>=5.2; extra == "gui-torch"
Provides-Extra: plot
Requires-Dist: matplotlib; extra == "plot"
Requires-Dist: seaborn; extra == "plot"
Provides-Extra: pyinstaller
Requires-Dist: pyinstaller; extra == "pyinstaller"
Provides-Extra: nuitka
Requires-Dist: nuitka; extra == "nuitka"
Requires-Dist: zstandard; extra == "nuitka"
Requires-Dist: ordered-set; extra == "nuitka"
Dynamic: license-file

# dragon-ml-toolbox

A collection of Python utilities for data science and machine learning, structured as a modular package for easy reuse and installation. This package has no base dependencies, allowing for lightweight and customized virtual environments.

### Features:

- Modular scripts for data exploration, logging, machine learning, and more.
- Designed for seamless integration as a Git submodule or installable Python package.

## Installation

**Python 3.10+**

### Via PyPI

Install the latest stable release from PyPI:

```bash
pip install dragon-ml-toolbox
```

### Via GitHub (Editable)

Clone the repository and install in editable mode with optional dependencies:

```bash
git clone https://github.com/DrAg0n-BoRn/ML_tools.git
cd ML_tools
pip install -e .
```

### Via conda-forge

Install from the conda-forge channel:

```bash
conda install -c conda-forge dragon-ml-toolbox
```

## Modular Installation

### 📦 Core Machine Learning Toolbox [ML]

Installs a comprehensive set of tools for typical data science workflows, including data manipulation, modeling, and evaluation. PyTorch is required.

```Bash
pip install "dragon-ml-toolbox[ML]"
```

To install the standard CPU-only versions of Torch and Torchvision:

```Bash
pip install "dragon-ml-toolbox[pytorch]"
```

⚠️ To make use of GPU acceleration (highly recommended), follow the official instructions: [PyTorch website](https://pytorch.org/get-started/locally/)

#### Modules:

```bash
custom_logger
data_exploration
ensemble_evaluation
ensemble_inference
ensemble_learning
ETL_engineering
ML_callbacks
ML_datasetmaster
ML_evaluation
ML_inference
ML_models
ML_optimization
ML_scaler
ML_trainer
optimization_tools
path_manager
PSO_optimization
RNN_forecast
SQL
utilities
```

---

### 🔬 MICE Imputation and Variance Inflation Factor [mice]

⚠️ Important: This group has strict version requirements. It is highly recommended to install this group in a separate virtual environment.

```Bash
pip install "dragon-ml-toolbox[mice]"
```

#### Modules:

```Bash
custom_logger
MICE_imputation
VIF_factor
path_manager
utilities
```

---

### 📋 Excel File Handling [excel]

Installs dependencies required to process and handle .xlsx or .xls files.

```Bash
pip install "dragon-ml-toolbox[excel]"
```

#### Modules:

```Bash
custom_logger
handle_excel
path_manager
```

---

### 🎰 GUI for Boosting Algorithms (XGBoost, LightGBM) [gui-boost]

For GUIs that include plotting functionality, you must also install the [plot] extra.

```Bash
pip install "dragon-ml-toolbox[gui-boost]"
```

```Bash
pip install "dragon-ml-toolbox[gui-boost,plot]"
```

#### Modules:

```Bash
custom_logger
GUI_tools
ensemble_inference
path_manager
```

---

### 🤖 GUI for PyTorch Models [gui-torch]

For GUIs that include plotting functionality, you must also install the [plot] extra.

```Bash
pip install "dragon-ml-toolbox[gui-torch]"
```

```Bash
pip install "dragon-ml-toolbox[gui-torch,plot]"
```

#### Modules:

```Bash
custom_logger
GUI_tools
ML_models
ML_inference
ML_scaler
path_manager
```

---

### 🎫 Base Tools [base]

General purpose functions and classes.

```Bash
pip install "dragon-ml-toolbox[base]"
```

#### Modules:

```Bash
ETL_Engineering
custom_logger
SQL
utilities
path_manager
```

---

### ⚒️ APP bundlers

Choose one if needed.

```Bash
pip install "dragon-ml-toolbox[pyinstaller]"
```

```Bash
pip install "dragon-ml-toolbox[nuitka]"
```

## Usage

After installation, import modules like this:

```python
from ml_tools.utilities import serialize_object, deserialize_object
from ml_tools import custom_logger
```
