Skip to main content

Tremendous Metrics

Project description

Tremetrics

PyPi

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.array                # 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

print(cm.recall_score(average='micro'))         # Call any sklearn.metrics function using the data in the matrix

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.4.tar.gz (3.8 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.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tremetrics-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 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.4.tar.gz
Algorithm Hash digest
SHA256 eb9454da78e91e38e484c256e7a97f9ebc6085bb106c1c00a2a7c6e93e63b5c0
MD5 afb5d359bff75cbcb3cb57802b96162c
BLAKE2b-256 c5731321f115677bf62c3cd5d8f969af92286043b1917f1d75586669f020b540

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tremetrics-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ccafa5cc1e4fc90877c8810fd7987894929f02a5010ac0ff5ad74724fb68d6bc
MD5 492a657711ca1f8f0d5db4d30c54bab8
BLAKE2b-256 4c426023eee0789c10665e6974895d2e32692b2e993d7053a82b66b7db16abb8

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