Skip to main content

No project description provided

Project description

probability-calibration

Probability calibration is a technique to calibrate the probabilities of a classifier. This package provides a simple interface to calibrate the probabilities of a sklearn-stype classifier. The package also provides a set of calibration methods.

Methods

  • Platt Scaling
  • Isotonic Regression
  • Inductive Venn-Abers Predictor (IVAP)
  • Cross Venn-Abers Predictor (CVAP)

Installation

$ pip install pcalibration

Usage

from pcalibration import CalibratorWrapper, CrossVennAbers

# Load the data
X_train, X_test, y_train, y_test = ...

# Create a CalibratorWrapper object
calibrator = CalibratorWrapper(model, CrossVennAbers(k=5))

# Fit the calibrator
calibrator.fit(X_train, y_train)

# Predict the probabilities
y_pred = calibrator.predict_proba(X_test)

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

pcalibration-0.1.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pcalibration-0.1.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pcalibration-0.1.2.tar.gz.

File metadata

  • Download URL: pcalibration-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.11 Darwin/22.2.0

File hashes

Hashes for pcalibration-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a83e76af3330069e5920649efc0ab9a58ffda7f65ba391ae39e05384e658f3e7
MD5 8e52c3ebe203c0f2f03d9fa3fcfdec68
BLAKE2b-256 55ef2ea220d577390c80ccc5d1b2dd167a2695f382e5a72586523a03f255b7ed

See more details on using hashes here.

File details

Details for the file pcalibration-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pcalibration-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.11 Darwin/22.2.0

File hashes

Hashes for pcalibration-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef588d38db3d1ba8dd2d0352853fb45a809a443ea784283910324fcdb9c8d821
MD5 3f03a40982fb49b7807880964fdac592
BLAKE2b-256 1d52acd8430415f4967c0305827e6ae4ce6b10e4cd8dbe75c2398f10cf19ac7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page