Skip to main content

presentable

Providing a Prettier Confusion Matrix for your Command Line

presentablelogo

GitHub Repo Stars PyPI - Downloads PyPI PyPI - License

Installation

presentable is available on PyPI. Install it with pip install presentable.

Usage

presentable is a drop in replacement from sklearn.metrics.confusion_matrix that just includes some nice formatting and only ever prints to the terminal, helpful on remote hardware accessible only from the CLI.

>>> confusion_matrix(gtr, pred, tabulate_args={"tablefmt":"github","floatfmt":".2f"},sklearn_args={"normalize":"all"})
| Truth\Model   |   cat |   dog |
|---------------|-------|-------|
| cat           |  0.17 |  0.17 |
| dog           |  0.33 |  0.33 |

tabulate_args and sklearn_args are optional dictionaries to specify additional configurations arguments for tabulate and sklearn's confusion_matrix. Check the tabulate documentation and sklearn documentation for a list of which args are supported.

Online Documentation

Click here to read the documentation

Metadata

Release files for presentable 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for presentable 1.0.0
File Size Uploaded
presentable-1.0.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for presentable 1.0.0
File Interpreter ABI Platform
presentable-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / presentable-1.0.0.tar.gz

Download URL presentable-1.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6b7097dd5fa48a4dd81822db3fb7fef2d45c03a39d3d55cd8c495392f922bb3e
BLAKE2b-256 checksum
How to use checksums
8478ff1e1fd684e27fe55e1b96563d24d3aa36e6805a6a09c0b2c15659570d83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / presentable-1.0.0-py3-none-any.whl

Download URL presentable-1.0.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22d4b353a698f1b191299280bbe217eab791b9b6fc5f5d504ed770b6e977af2f
BLAKE2b-256 checksum
How to use checksums
e9cf18d9fbad82da6864db6d846a5ed5644be068da78e1c2b527c1f34e10a24b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page