Skip to main content

Reusable machine learning toolkit for summary statistics, correlation, preprocessing, and model selection.

Project description

mlprimer

CI

mlprimer is a Python package that assists with early-stage machine learning workflows. It helps users perform data profiling, feature correlation testing, preprocessing with class balancing, model training, and evaluation across common classifiers.

Features

  • Generate summary statistics from cleaned datasets
  • Identify meaningful feature-target relationships
  • Apply SMOTE to handle class imbalance
  • Compare baseline classification models
  • Perform hyperparameter tuning with GridSearch and RandomizedSearch

Installation

📦 From GitHub (direct)

pip install git+https://github.com/Kingkong2408/mlprimer.git

📦 From PyPI

pip install mlprimer

Usage

from mlprimer import (
    calculate_summary,
    check_correlation,
    apply_smote,
    split_data,
    train_models,
    evaluate_models
)

# Summary
summary = calculate_summary(df)

# Correlation
correlation = check_correlation(df, target="target_column")

# Preprocessing
X_res, y_res = apply_smote(X, y)
X_train, X_test, y_train, y_test = split_data(X_res, y_res)

# Modeling
models = train_models(X_train, y_train)
results = evaluate_models(models, X_test, y_test)
print(results)

Development Goals

  • Add support for regression models
  • Include more preprocessing tools (e.g., imputation, encoding helpers)
  • Improve pipeline integration and configuration support

License

MIT

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

mlprimer-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

mlprimer-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlprimer-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for mlprimer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98949944ce815724d83ec59e2e23558f69edd1d1b652ebc920f7189e24542721
MD5 100300d594750fde1d63a525f0761e9c
BLAKE2b-256 c35b204f31899dab1b8ea1537b7aa67207eb851a8dd40278f7c6e856fcb234e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlprimer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for mlprimer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a986d72c5cb9cedba2f13ffe73391b318b6c5e9642eea8c6e807510768710295
MD5 2a64327035a7a2aa669b726d0d429a50
BLAKE2b-256 71d4c82f6c106b14db90075ac87ddeafb8b777c40b06b37a9a6bbfeec0a27053

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