Skip to main content

Tremendous Metrics

Project description

Tremetrics

Tremendous Metrics.

Installation

You can install Tremetrics from PyPi using pip.

pip install tremetrics

Usage

ConfusionMatrix

from tremetrics import ConfusionMatrix

y_true, y_pred = ...                            # Generate predictions
cm = ConfusionMatrix.from_pred(y_true, y_pred)  # Create a new confusion matrix object

print(cm)                                       # Print the confusion matrix
array_for_further_use = cm.matrix               # Get the matrix as a numpy array
print(cm.tp, cm.fn, cm.fp, cm.tn)               # Get the individual quadrant values

print(cm.get_latex_table(multirow=True))        # Get the matrix as code for a Latex table

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

tremetrics-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tremetrics-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tremetrics-0.1.2.tar.gz.

File metadata

  • Download URL: tremetrics-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4

File hashes

Hashes for tremetrics-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e37ea3db39dbf36601d77cac04b3d446cb1ed457f17f14cdb4ffbebfb797346d
MD5 cbe386050cf347b6245195774e7fa370
BLAKE2b-256 2a6e88d252391160a305db934d30d030c9434784a10eb19e2b9418020358d9aa

See more details on using hashes here.

File details

Details for the file tremetrics-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tremetrics-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4

File hashes

Hashes for tremetrics-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b346394d252620f6526f47ec14627f722760b4804ac1c73a478ee25609d9d2a5
MD5 be61ad02c37e9636c56555af794578c8
BLAKE2b-256 f6c7f487f1afbfd70d0b0d6dfb5912f481a510dbf52ccca2819f5074bb436458

See more details on using hashes here.

Supported by

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