pyroc
pyroc is a package for analyzing receiver operator characteristic (ROC) curves. It includes the ability to statistically compare the area under the ROC (AUROC) for two or more classifiers.
Quick start
Install:
pip install pyroc
Use:
import pyroc import numpy as np
pred = np.random.rand(100) target = np.round(pred) # flip 10% of labels target[0:10] = 1 - target[0:10] W = pyroc.auroc(target, pred)
# second prediction pred2 = pred pred2[10:20] = 1 - pred2[10:20] auroc, ci = pyroc.auroc_ci(target, [pred, pred2]) print(auroc) print(ci)
Documentation
Documentation is available on readthedocs. An executable demonstration of the package is available on GitHub as a Jupyter Notebook.
Installation
To install the package with pip, run:
pip install pyroc
To install this package with conda, run:
conda install -c conda-forge pyroc
Metadata
Release files for pyroc 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyroc-0.1.1.tar.gz | 5.7 kB | Without provenance | Details for pyroc-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyroc-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pyroc-0.1.1-py3-none-any.whl |
Total release size: 11.9 kB
Release files / pyroc-0.1.1.tar.gz
| Download URL | pyroc-0.1.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6275bf0afb2e5857e7d23e83cabf6064f740a0bcc667d397f0e6ba93a82b0aaf
|
|
BLAKE2b-256 checksum How to use checksums |
c2f3d0dd278b17e07c2f9770c7309b51610d9fd369d5769c278c0fce30c381ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.5
|
Release files / pyroc-0.1.1-py3-none-any.whl
| Download URL | pyroc-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30e6e268bd1e20241b1e0db033eb9e5954efbbec73c1d7485ea8957223a101ad
|
|
BLAKE2b-256 checksum How to use checksums |
27729951fc97287c0eb22e68dad0b4b3c8f835a2e37ab3c54833bd33d823c368
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.5
|
Security for pyroc 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.