Skip to main content

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

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.5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ml_qol-0.1.5-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file ml_qol-0.1.5.tar.gz.

File metadata

  • Download URL: ml_qol-0.1.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for ml_qol-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1b3929afd52177a771d7ce06af87950b13fd6d61c643a669b98e827e1a07ffb2
MD5 7eeecaffe8fb0d2fd9e4c8fa6e028dc7
BLAKE2b-256 68cad0686ca8b4c0e5651bede8f8130d1464dde16117fcabaa808d59f078eb05

See more details on using hashes here.

File details

Details for the file ml_qol-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ml_qol-0.1.5-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

Hashes for ml_qol-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ca6deffa9550ee4c331b881dc083b5ad6e63d35dde1ed2d0c807beeaa804d16f
MD5 be94b254410055839ae4c80a35babe50
BLAKE2b-256 f6c495203ea4a6215c5b23de8116564c75c4073082631c5f0633744632aed807

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page