Complete Confusion
A simple call to visualize performance metrics for classification and regression models.
Installation
pip install complete-confusion
Usage
import complete_confusion as cc
# Example data
predictions = [0, 1, 0, 2, 1, 2, 0]
trues = [0, 1, 0, 2, 0, 2, 2]
classes = ["Class 0", "Class 1", "Class 2"]
output_path = "confusion_matrix.html"
cc.export_confusion_matrix_to_html(predictions, trues, classes, output_path)
Development
poetry install
poetry shell
python evaluate.py
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 complete_confusion-0.1.0.tar.gz.
File metadata
- Download URL: complete_confusion-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.3 CPython/3.9.13 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d9e7810d41b6cecdb1a0271044fbe842b6a36f1114bf57a4df60777af91f96
|
|
| MD5 |
7d42abf9d58b06c8cb677c34c77b4d18
|
|
| BLAKE2b-256 |
9525697edd74334c2f4a3e5e62c5951f3717c59798668667d9b686a2c08cc529
|
File details
Details for the file complete_confusion-0.1.0-py3-none-any.whl.
File metadata
- Download URL: complete_confusion-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.3 CPython/3.9.13 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e92c93a99df87bc47a44841f8e799a5e890c85e353e82b45131253653ef9716
|
|
| MD5 |
fb6b31b344a1a10fc2b3574f162abe4b
|
|
| BLAKE2b-256 |
cc36a10d717e37c1b039978f83b39c2abab48cc0d780636ec656ac851ce0ec8b
|