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

semiq-ml 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)
  • 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.2.0.tar.gz (24.7 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.2.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: semiq_ml-0.2.0.tar.gz
  • Upload date:
  • Size: 24.7 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.2.0.tar.gz
Algorithm Hash digest
SHA256 497559d55984527bd1c315cd806e313d9b66a0867d8bd9357cae2a398a033afd
MD5 6c0d3d7ceb8752a186481715045edd7d
BLAKE2b-256 b1d7e482dff37837399f0afdf4ed78972f5e0f8dcde103a569bdd6849e48540d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: semiq_ml-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74772e80d76242f448c7990df48423a5e14c6739efba993ea411ef21bfe98910
MD5 2f09de1e0426990e0fa010645bfbd369
BLAKE2b-256 edf551a4a4c86331804f8cffe45139a158a60cc2d6713140d1a9e818efab1f2d

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