An ML toolkit package that provides quality-of-life features
Project description
ML QOL
ML QOL is a Python package that provides helper functions and quality-of-life features for machine learning tasks
Features
- Automated hyperparameter mapping for different models such as CatBoost and LightGBM
- Data handling functions for managing dates, NaN values, and more
- Feature engineering functions such as combining features together or adding target encoded features
- Fast and easy way to train and compare different models and their performance, e.g, feature importance, confusion matrix
- Perform folded training and gathering averaged predictions
- Perform weighted ensembling with different types of models
Dependencies
This package relies on the following Python libraries:
You can install them via pip:
pip install pandas numpy scikit-learn lightgbm catboost xgboost matplotlib seaborn
Installation
Using pip
pip install ml-qol
Quick Start
from ml_qol import train_model
# Train a model
model = train_model('lightgbm', 'regression', train_data=train_df, target_col='price')
# Show feature importances
model.plot_importance()
# Use for inference
predictions = model.predict(test_df)
print(predictions)
Resources
- PyPi: (https://pypi.org/project/ml-qol)
- GitHub repository: (https://github.com/mashrursakif/ml-qol)
- Documentation and examples: (https://github.com/mashrursakif/ml-qol/tree/main/examples)
License
MIT
Author
Developed by Mashrur Sakif Souherdo - GitHub
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ml_qol-0.1.7.tar.gz
(9.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ml_qol-0.1.7-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file ml_qol-0.1.7.tar.gz.
File metadata
- Download URL: ml_qol-0.1.7.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efbd42f926149d85463f477cf1105c35b2e72886dcad67b7ea0cc58cbe4bb1f3
|
|
| MD5 |
e937242ee64ecb4f9e3834ae881c6dd7
|
|
| BLAKE2b-256 |
fd0b302b7cda19bb80e9584cc892b6af0fbf4814132e716a567b60635d7e24a2
|
File details
Details for the file ml_qol-0.1.7-py3-none-any.whl.
File metadata
- Download URL: ml_qol-0.1.7-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7b2a80d37481731da857c0388307caa04b8d8a7d7fadca4bbb2c354f7b2b4d
|
|
| MD5 |
f5b2047e57687cfb692ecc15702665e7
|
|
| BLAKE2b-256 |
03b0f451d5360f9389fe1c534847a99178a68942c2a9228cac92959e10d8b4f3
|