Skip to main content

Python tools for working with the AUROC

Project description

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

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

pyroc-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

pyroc-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyroc-0.1.1.tar.gz.

File metadata

  • Download URL: pyroc-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyroc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6275bf0afb2e5857e7d23e83cabf6064f740a0bcc667d397f0e6ba93a82b0aaf
MD5 76ed040d497b6e055e73100eec95418f
BLAKE2b-256 c2f3d0dd278b17e07c2f9770c7309b51610d9fd369d5769c278c0fce30c381ca

See more details on using hashes here.

File details

Details for the file pyroc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyroc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyroc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30e6e268bd1e20241b1e0db033eb9e5954efbbec73c1d7485ea8957223a101ad
MD5 c8cf94ff79b012ccb730d90a0b22ef3f
BLAKE2b-256 27729951fc97287c0eb22e68dad0b4b3c8f835a2e37ab3c54833bd33d823c368

See more details on using hashes here.

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