Skip to main content

Python code to compute and plot (truncated, weighted) area under gain curves (agc)

Project description

AGC - Area under Gain Curves

Python code to compute and plot (truncated, weighted) area under gain curves (AGC)

For binary classification, gain curves are a nice alternative to ROC curves in that they can naturally be truncated to focus on the top scoring points only. In this code, we provide three functions:

  • agc_score: Compute the area under the gain curve (AGC) for binary labelled data
  • agc_approximate: Approximate the area under the gain curve (AGC) for binary labelled data via sampling
  • gain_curve: Compute the proportion of data points and true positive rate for all thresholds, for plotting

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

agc-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

agc-0.0.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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