presentable
Providing a Prettier Confusion Matrix for your Command Line
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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| presentable-1.0.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|