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.4.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.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ml_qol-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 2fcc6d655e0c46275395e91fcaca9ef5db6d4747449f8ef7852e5807d8b801e5
MD5 752e86ad44ac0fa0d004d6229c9e1909
BLAKE2b-256 d2fb1bb229c3eeec26c48a1774a7530dff46a23c1c93f92c5d296a57379222e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ml_qol-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07db60c86a7837e18504464bf6eab8a98825e4097910dc7e8451cc06caa43940
MD5 53fb908ebaa2ea0be028c7aa8bddafe7
BLAKE2b-256 a3f823553051bfe3efeaf8f6af1249ebb414f51d1b04032717dea3256c4a523b

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