Providing a Prettier Confusion Matrix for your Command Line
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
presentable-1.0.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for presentable-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d4b353a698f1b191299280bbe217eab791b9b6fc5f5d504ed770b6e977af2f |
|
MD5 | bff4802a412025b97cfbd370387a2942 |
|
BLAKE2b-256 | e9cf18d9fbad82da6864db6d846a5ed5644be068da78e1c2b527c1f34e10a24b |