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

Uploaded Python 3

File details

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

File metadata

  • Download URL: semiq_ml-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1b9f92cac4370985daa9fd1548f069e5588cde12cb0776a4e733bbde2cfae6fc
MD5 a8419df1f25adfe797ada237fe3ed530
BLAKE2b-256 abca1c017481d745fc3ede341d432fe56a5e9b42ba084b3fa75d89b2aabc76a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: semiq_ml-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93af2ccd68d3765bd7095d7e80cff24d6287c4df30983f5ff5f3edb2bca629ff
MD5 55e5d055582f484e7843f32064b1e423
BLAKE2b-256 c09e1a288d4aed164f257c563a67f6f6f6f867f395ade207b8d8aeda178c267b

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