The Judge/Scoring engine for XRTM.
Project description
xrtm-eval v0.3.0
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eb6c34c5be12a4fec9871d9a51c452f35cf49def960790861f72209a3bf4484
|
|
| MD5 |
f2dc97d700304d595bcd7d2c8ce8eaf7
|
|
| BLAKE2b-256 |
073c1d121bed6eb39e440bb7d31576f5cdfa085f12f9f86ed800067e691c2b22
|
Provenance
The following attestation bundles were made for xrtm_eval-0.3.1.tar.gz:
Publisher:
publish.yml on xrtm-org/eval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrtm_eval-0.3.1.tar.gz -
Subject digest:
0eb6c34c5be12a4fec9871d9a51c452f35cf49def960790861f72209a3bf4484 - Sigstore transparency entry: 1874718599
- Sigstore integration time:
-
Permalink:
xrtm-org/eval@50eae980e4bd10af85388c33e2127dff9663a862 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/xrtm-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50eae980e4bd10af85388c33e2127dff9663a862 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93fedbbfd2499d5d9dc868d047b272df4e9431a8250ee8aaa76fe1624a456472
|
|
| MD5 |
52e8647f0ed2edf0cf96045687f1616c
|
|
| BLAKE2b-256 |
c73cb6781b5ba9e72de42807ada443c5143cf07c2f198133e468e2050a01c6b4
|
Provenance
The following attestation bundles were made for xrtm_eval-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on xrtm-org/eval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrtm_eval-0.3.1-py3-none-any.whl -
Subject digest:
93fedbbfd2499d5d9dc868d047b272df4e9431a8250ee8aaa76fe1624a456472 - Sigstore transparency entry: 1874718997
- Sigstore integration time:
-
Permalink:
xrtm-org/eval@50eae980e4bd10af85388c33e2127dff9663a862 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/xrtm-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50eae980e4bd10af85388c33e2127dff9663a862 -
Trigger Event:
release
-
Statement type: