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.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tremetrics-0.1.1.tar.gz.
File metadata
- Download URL: tremetrics-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdfe37d8948c655250cad282234a68e45e04e8120d9ce6571f3706fb875453d4
|
|
| MD5 |
0aa8b09b6df141589ae4a5c6cf9081eb
|
|
| BLAKE2b-256 |
c76690eaa04f9bbdc969364012be7da30df2f73cdc8efc7a5235ebf258e31e4b
|
File details
Details for the file tremetrics-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tremetrics-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37fa5e9d03542ab2435b3a1da7d0dbb7404aa52acbbae8220cd0cab3b23a324e
|
|
| MD5 |
8a6a5b136cf148dc7d845936c0f8b1e6
|
|
| BLAKE2b-256 |
eb1fd83adf0cba9f5cb4e050ced280a85a8d448c2146dc3339179fc3d50e5b11
|