Skip to main content

Providing a Prettier Confusion Matrix for your Command Line

Project description

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

Project details


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 details)

Uploaded Source

Built Distribution

presentable-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file presentable-1.0.0.tar.gz.

File metadata

  • Download URL: presentable-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for presentable-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6b7097dd5fa48a4dd81822db3fb7fef2d45c03a39d3d55cd8c495392f922bb3e
MD5 bb1559aeb2f99cd7b9b9f35aeffc1100
BLAKE2b-256 8478ff1e1fd684e27fe55e1b96563d24d3aa36e6805a6a09c0b2c15659570d83

See more details on using hashes here.

Provenance

File details

Details for the file presentable-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: presentable-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for presentable-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22d4b353a698f1b191299280bbe217eab791b9b6fc5f5d504ed770b6e977af2f
MD5 bff4802a412025b97cfbd370387a2942
BLAKE2b-256 e9cf18d9fbad82da6864db6d846a5ed5644be068da78e1c2b527c1f34e10a24b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page