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.0a1.tar.gz (24.0 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.0a1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: semiq_ml-0.2.0a1.tar.gz
  • Upload date:
  • Size: 24.0 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.0a1.tar.gz
Algorithm Hash digest
SHA256 f30e0211a37d7dbac9e672fc6c2430c865f084d7ec605df3dfcb1d27e639938b
MD5 bdecfc8e22dfc4d1f61ef4e8429ea078
BLAKE2b-256 af82cc5257492dc154ed855096567ff6dfb5a576be8a74b190ce172f9baca0c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: semiq_ml-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 250480dae43cbf9a98bb23e985acfeb450f5cca3e18b042b1dbcb4aad165e152
MD5 78e18d1b029e692b98ad3d9938066e48
BLAKE2b-256 7a915298349fa328c7a580391bc2c481b21e54addad2dec4f9ef14a440ff0f26

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