Skip to main content

A collection of reusable machine learning pipeline helpers

Project description

semiq-ml

A collection of reusable machine learning pipeline helpers designed to streamline ML workflows.

Description

ML Helper is a Python package that provides helper functions and classes to simplify common machine learning tasks, including baseline model training and hyperparameter tuning. It supports popular ML frameworks like LightGBM, XGBoost, and CatBoost.

Installation

From PyPI

You can install the package from PyPI using pip:

pip install semiq-ml

From Source

Install the package directly from GitHub:

pip install git+https://github.com/yourusername/semiq-ml.git

Or install from source:

git clone https://github.com/yourusername/semiq-ml.git
cd ml-helper
pip install -e .

Features

  • Baseline Models: Quickly train baseline models with sensible defaults
  • Preprocessing: Simple preprocessing steps for features (e.g., imputing, encoding, scaling)
  • Feature Importance: Easy extraction of feature importance from trained models
  • Integration: Seamless integration with scikit-learn, LightGBM, XGBoost, and CatBoost

Usage

Basic Example

from ml_helper import BaselineModel
import pandas as pd
from sklearn.model_selection import train_test_split

# Load dataset
data = pd.read_csv('your_data.csv')
X = data.drop('target', axis=1)
y = data['target']

model = BaselineModel()
model.fit(X, y)

model.get_results() # to get the results of the baseline model
lgbm = model.get_model('LGBM')

Documentation

For detailed documentation, please refer to the Wiki

Requirements

  • Python >=3.12
  • numpy
  • pandas
  • scikit-learn
  • matplotlib
  • seaborn
  • lightgbm
  • xgboost
  • catboost

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

semiq_ml-0.1.1.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

semiq_ml-0.1.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file semiq_ml-0.1.1.tar.gz.

File metadata

  • Download URL: semiq_ml-0.1.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for semiq_ml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 97fa5b0d1ef921d5684e1bd3dea98a6476c9229cfafd235d9586870f5c5677c0
MD5 51a298a2e86ff4baf6b02eb6451e10a1
BLAKE2b-256 46d637bcc6ea09d75fae9120f3b89376169c244c5a1b8c064b8c14c086416a74

See more details on using hashes here.

File details

Details for the file semiq_ml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: semiq_ml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for semiq_ml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15d51ddd54af94fb092c2a76ffa44bc23b2c7fdfe523ea6bda23f586f1d92ee9
MD5 70251214d54ec27b9de8a0851087068a
BLAKE2b-256 116daaa2d3f710619216271082cdb60a4d40be7a66e42945b6992ab58b572fb6

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