Reusable machine learning toolkit for summary statistics, correlation, preprocessing, and model selection.
Project description
mlprimer
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlprimer-0.1.0.tar.gz.
File metadata
- Download URL: mlprimer-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a84accc5246df900dc997f572eb3e8f370d5ab18f506c6710046d1de27c64922
|
|
| MD5 |
9517ad3e69ea311b0cca406016eb2b94
|
|
| BLAKE2b-256 |
bf173fb916b83e4c5a4acfb7040e4c3a1e75f33929d34f309450771b29d07673
|
File details
Details for the file mlprimer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlprimer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
032ac40d7c68c120acee2a11ad62fa6a020cc8f2f56f98f148c75e830c43c667
|
|
| MD5 |
05e4969cbe37ecb8630f1db15727d99f
|
|
| BLAKE2b-256 |
f505ae3e46715c8ba797ea97683c0daead07591d10f871e46cb5d581322b0918
|