Skip to main content

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

Project description

mlprimer

CI PyPI version

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.3.tar.gz (5.0 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.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlprimer-0.1.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for mlprimer-0.1.3.tar.gz
Algorithm Hash digest
SHA256 62ea7a6c73609e261b7e1fd9e9250120ca840d872c3e95b2431f558101931fcb
MD5 3521d44c66fe1264c70147b2dbfefe08
BLAKE2b-256 c124cb4628a6a1b0b2d57500273bef83a7e54d2b3fad9b3adc82fd90e21f7385

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlprimer-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for mlprimer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2646159275c840944359fa51bb562443a5f3e70a1c0e17529c9315d003dc4521
MD5 b014098a11b83c8938b90d39ffb95767
BLAKE2b-256 f1bba5f5befc0b01f20d8c244b1f30bf85ef06dba4c81acf99ef8bd0d5402744

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