Skip to main content

The Judge/Scoring engine for XRTM.

Project description

xrtm-eval v0.3.0

PyPI

License Python

The Judge for XRTM.

xrtm-eval is the scoring engine for probabilistic forecasts. It measures calibration, accuracy, and resolution using strict scoring rules.

Installation

pip install xrtm-eval

Scoring Metrics

Metric Class Description
Brier Score BrierScoreEvaluator Mean squared error (p - o)^2. Murphy decomposition into reliability/resolution/uncertainty.
ECE ExpectedCalibrationErrorEvaluator Expected Calibration Error via reliability binning.
Log Score LogScoreEvaluator Negative log-likelihood with epsilon clamping.
Dashboard summarize_binary_forecasts() Aggregate Brier, ECE, LogScore + calibration curve in one call.

Usage

from xrtm.eval import BrierScoreEvaluator, summarize_binary_forecasts

# Single forecast


evaluator = BrierScoreEvaluator()
score = evaluator.score(probability=0.7, ground_truth="yes")

# Batch evaluation
predictions = [(0.7, "yes"), (0.3, "no"), (0.9, "yes")]
summary = summarize_binary_forecasts(predictions)
print(f"Brier: {summary['brier_score']:.4f}")
print(f"ECE:   {summary['ece']:.4f}")

License

Apache 2.0

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

xrtm_eval-0.3.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

xrtm_eval-0.3.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file xrtm_eval-0.3.1.tar.gz.

File metadata

  • Download URL: xrtm_eval-0.3.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xrtm_eval-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0eb6c34c5be12a4fec9871d9a51c452f35cf49def960790861f72209a3bf4484
MD5 f2dc97d700304d595bcd7d2c8ce8eaf7
BLAKE2b-256 073c1d121bed6eb39e440bb7d31576f5cdfa085f12f9f86ed800067e691c2b22

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm_eval-0.3.1.tar.gz:

Publisher: publish.yml on xrtm-org/eval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xrtm_eval-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: xrtm_eval-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xrtm_eval-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93fedbbfd2499d5d9dc868d047b272df4e9431a8250ee8aaa76fe1624a456472
MD5 52e8647f0ed2edf0cf96045687f1616c
BLAKE2b-256 c73cb6781b5ba9e72de42807ada443c5143cf07c2f198133e468e2050a01c6b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm_eval-0.3.1-py3-none-any.whl:

Publisher: publish.yml on xrtm-org/eval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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