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.1a0.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.1a0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: semiq_ml-0.1.1a0.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.1a0.tar.gz
Algorithm Hash digest
SHA256 9925df92ce651132de29d5e92be271241d8f44ca9b5f1e87e45bf3b4f97a049b
MD5 fba86ff5185b1cf7d9f7ab314d3231f7
BLAKE2b-256 67d0d75fb809c2a5f1e9e44504b17725457d1e2b18dac25bf5b4ada011d5e1d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: semiq_ml-0.1.1a0-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.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cb36a73f3549a99d9b47c56c69950e40e2f0ff8b0540e57fcaea87b12268228
MD5 ae5451b54b14535f37ca482d66b81d3f
BLAKE2b-256 a0326bfdb6be677005565b84f9171a0a518eda43b84dff78a04e02ea2125bd7c

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