pycalibrate. A tool to assess classifier calibration in Jupyter Notebooks
Project description
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.
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
Need Help?
Need help? Open up an issue.
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(5.7 kB
view details)
File details
Details for the file pycalibrate-0.0.1.tar.gz
.
File metadata
- Download URL: pycalibrate-0.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49721bc28cf5c4075e73f53dc41cf5c519f33ab5f69e5ba78b1690157ed1e560 |
|
MD5 | 6fdf90f476969f4a2d5ecaa9846d5626 |
|
BLAKE2b-256 | 5d39264fbcb84753b9573722ea4973d9e2c5f3228fd28d0b45cbbf26b1b5f358 |