Skip to main content

pycalibrate. A tool to assess classifier calibration in Jupyter Notebooks

Project description

Downloads Open In Colab MIT license

pycalibrate

Pycalibrate is a Python package that allows access to the Calibrate tool. Calibrate is a visual analytics tool used to analyze model calibration in Jupyter Notebooks. Below, we show what Calibrate looks like in practice.

Installation

Installing pycalibrate is easy. Simply run:

pip install pycalibrate

You can also use pycalibrate on Colab, by copying our Example Colab Notebook.

You can also pip install directly from the repository by running pip install git+https://github.com/VIDA-NYU/pycalibrate

Usage

One can pycalibrate in just a few lines of code:

from pycalibrate import Calibrate

c = Calibrate(data=dataset) # `dataset` must be a Pandas dataframe

c.add_model(y_preds, y_labels, "ModelName") 
# y_preds is an n x k matrix of predictions
# y_labels is an n x k matrix of one-hot encoded labels

c.visualize() # Voila! 

Calibrate Tool

System screen

Need Help?

Need help? Open up an issue.

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

pycalibrate-0.0.2.tar.gz (132.5 kB view details)

Uploaded Source

File details

Details for the file pycalibrate-0.0.2.tar.gz.

File metadata

  • Download URL: pycalibrate-0.0.2.tar.gz
  • Upload date:
  • Size: 132.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.3

File hashes

Hashes for pycalibrate-0.0.2.tar.gz
Algorithm Hash digest
SHA256 792f6ad89284612228cb13525f2ca13ba1370107eac34d02bb813a4d12853de0
MD5 c863546afd5fe41bc17eaf958af1faa8
BLAKE2b-256 e67d7805d3400613bf495aca6f6aa8f16c1193b647457a52304c83006421fa63

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