Skip to main content

Compute and plot bootstrapped performance curves for classification problems.

Project description

classification-curves

A library for computing and plotting bootstrapped metrics (ROC curves, Precision-Recall curves, etc.) to evaluate the performance of a classification model.

Example

mg = MetricsGenerator(
    predictions_df,
    label_column="label",
    score_column="score",
    weight_column="weight",
    score_is_probability=False,
    reverse_thresh=False,
    num_bootstrap_samples=20,
)

mg.plot_pr(
    op_value=0.1,
    bootstrapped=True,
    bootstrap_alpha=0.05,
)
mg.plot_roc()

Example PR curve Example ROC curve

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

clscurves-0.3.2.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

clscurves-0.3.2-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file clscurves-0.3.2.tar.gz.

File metadata

  • Download URL: clscurves-0.3.2.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.18 Linux/6.5.0-1025-azure

File hashes

Hashes for clscurves-0.3.2.tar.gz
Algorithm Hash digest
SHA256 a13bc39fed57d2cf24b29c8cce3e6ba9794a8203b86aa65ddb357c9cefbedc01
MD5 555bfb6d5c02ba96612c34a545d8551e
BLAKE2b-256 dc452b40966886076d0a3f8cd7e6f4e2a80002b72c4ccd3d646e15c8d1026514

See more details on using hashes here.

File details

Details for the file clscurves-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: clscurves-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.18 Linux/6.5.0-1025-azure

File hashes

Hashes for clscurves-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08caddde047f287769a4380770939eb4b226766a6173527cc02ac2585f07b6a0
MD5 f19610e26a6aa1c9d97c6816c7c0968c
BLAKE2b-256 618f3a67c01ab39c9f44dcd0f408e49146d0a444a47bec2c09e0308672825811

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