best-model-toolkit
A collection of functions for quickly training, tuning (GridSearchCV) and
comparing several scikit-learn / XGBoost models for regression and
classification tasks, with automatic plots of metrics (R², MAE, RMSE,
F1, precision, recall, PR curves, etc).
Installation
Locally (before the package is on PyPI)
git clone https://github.com/YOUR_USERNAME/best-model-toolkit.git
cd best-model-toolkit
pip install -e .
Directly from GitHub
pip install git+https://github.com/YOUR_USERNAME/best-model-toolkit.git
From PyPI (once published, see below)
pip install best-model-toolkit
Usage
from best_model_toolkit import best_model
import pandas as pd
df = pd.read_csv("your_data.csv")
X = df.drop(columns=["target"])
y = df["target"]
results = best_model(
features=X,
target=y,
mode="regression", # or "classification"
grid="Yes", # "Yes"/"No" — whether to run GridSearchCV
df=df,
hue=None, # column for pairplot hue (classification)
)
# results — dict {"model_name": {"model": ..., "param": ..., "metrics": {...}}}
Package structure
best_model_toolkit/
├── pyproject.toml
├── README.md
└── src/
└── best_model_toolkit/
├── __init__.py
└── core.py
Publishing to PyPI
pip install build twine
python -m build
twine upload dist/*
Metadata
Release files for best-model-toolkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| best_model_toolkit-0.1.0.tar.gz | 12.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| best_model_toolkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / best_model_toolkit-0.1.0.tar.gz
| Download URL | best_model_toolkit-0.1.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5df3fa38a5d3dfd7d53e31902ac2afbb8786d0acceb12239173db10896f9c57
|
|
BLAKE2b-256 checksum How to use checksums |
332481b0f7b4600d971aa93b2cb64d2985b87182507975e097d6b5483942e2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / best_model_toolkit-0.1.0-py3-none-any.whl
| Download URL | best_model_toolkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cac6202114eb106e0c6373ab9da362c5dc97dc0de0210915e582bd52f7d9560
|
|
BLAKE2b-256 checksum How to use checksums |
abd7a83b8956539fe2140e6e3f5707ac0253cda041af4720f7312313ef09bd50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for best-model-toolkit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.