ML VizKit
Reusable visualizations for inspecting, comparing, and explaining trained machine-learning models.
ML VizKit provides high-level Python functions for common machine-learning visualizations. It works with trained models, predictions, and experiment results produced by libraries such as scikit-learn.
The package does not train models, select features, choose algorithms, or make analytical decisions.
Design
- Accept already-trained models, predictions, or completed experiment results.
- Reuse established visualization primitives from scikit-learn when they exist.
- Add small higher-level visualizations where the underlying libraries do not.
- Return Matplotlib
Axesobjects. - Never call
plt.show(). - Keep analytical choices visible to the caller.
- Keep the implementation readable and replaceable.
Install
uv add ml-vizkit
Example
from ml_vizkit import show_confusion_matrix
ax = show_confusion_matrix(y_test, y_pred)
ax.set_title("Penguin Species Classification")
The caller controls display and composition. In a script, for example:
import matplotlib.pyplot as plt
ax = show_confusion_matrix(y_test, y_pred)
plt.show()
Initial API
Classification:
show_decision_boundary()show_confusion_matrix()show_prediction_errors()show_class_distribution()
Regression:
show_actual_vs_predicted()show_residuals()
Model inspection:
show_feature_importance()
Experiment inspection:
show_train_test_split()compare_splits()compare_models()
Developer Command Reference
Show command reference
In a machine terminal
Open a machine terminal where you want the project:
git clone https://github.com/analytics-toolworks/ml-vizkit
cd ml-vizkit
code .
In a VS Code terminal
uv self update
uv python pin 3.14
uv python install
uv lock --upgrade
uv sync
uv run pre-commit install
uv run pre-commit autoupdate
git add -A
uv run pre-commit run --all-files
# repeat if changes were made
uv run pre-commit run --all-files
# types, tests, docs
uv run ty check
uv run python -m pytest
uv run python -m zensical build
# save progress
git add -A
git commit -m "update"
git push -u origin main
Documentation
Annotations
Citation
License
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 ml_vizkit-0.0.2.tar.gz.
File metadata
- Download URL: ml_vizkit-0.0.2.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a64cfea6909760b7bdf4623d50f53950d20d2cf8233ab54fdf9c94aaff96012b
|
|
| MD5 |
ccfb942f8282ce3d848cdca3e89d6732
|
|
| BLAKE2b-256 |
6fe55ad53b522885fcf4f2a0f4c15cf7782d73b87ebf0f8b3470efecad2109b8
|
Provenance
The following attestation bundles were made for ml_vizkit-0.0.2.tar.gz:
Publisher:
release-pypi.yml on analytics-toolworks/ml-vizkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ml_vizkit-0.0.2.tar.gz -
Subject digest:
a64cfea6909760b7bdf4623d50f53950d20d2cf8233ab54fdf9c94aaff96012b - Sigstore transparency entry: 2490121497
- Sigstore integration time:
-
Permalink:
analytics-toolworks/ml-vizkit@372262b68b38c5a73de267630f50e6ceb655df8f -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/analytics-toolworks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@372262b68b38c5a73de267630f50e6ceb655df8f -
Trigger Event:
push
-
Statement type:
File details
Details for the file ml_vizkit-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ml_vizkit-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e87597e61a86a2fcd845d032b2ab3a67074505963eaa44ed34493a4769ccacf
|
|
| MD5 |
e287611b8a1e3f0db39197699737f861
|
|
| BLAKE2b-256 |
993cbb465af649099663b8e87674ea82be18c16e9036a6510d7a5ade7c7e096f
|
Provenance
The following attestation bundles were made for ml_vizkit-0.0.2-py3-none-any.whl:
Publisher:
release-pypi.yml on analytics-toolworks/ml-vizkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ml_vizkit-0.0.2-py3-none-any.whl -
Subject digest:
5e87597e61a86a2fcd845d032b2ab3a67074505963eaa44ed34493a4769ccacf - Sigstore transparency entry: 2490121511
- Sigstore integration time:
-
Permalink:
analytics-toolworks/ml-vizkit@372262b68b38c5a73de267630f50e6ceb655df8f -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/analytics-toolworks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@372262b68b38c5a73de267630f50e6ceb655df8f -
Trigger Event:
push
-
Statement type: