Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,16 @@ Each release links to full notes on the

### Documentation

- Confidence Metrics no longer calls an AUROC of 0.7 or more well calibrated.
AUROC measures whether confidence ranks right answers above wrong ones, and
the page now points to `ECEMetric`'s bins to check calibration
([#491](https://github.com/awslabs/stickler/issues/491)).

- The bounding box mAP page says boxes have no page: the same coordinates on
another page score IoU `1.0`, and `_page` is ignored. For a multi-page
document, compare each page as its own document
([#339](https://github.com/awslabs/stickler/issues/339)).

- The comparator guide has a Language Support section
([#592](https://github.com/awslabs/stickler/issues/592)). It gives the score
each text comparator returns for Arabic spelling variants, diacritics,
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/Advanced/bbox-map-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ print(f"Coverage: {bbox_metrics['coverage']}")

### Combining with confidence metrics

Because each accumulator is independent, you can evaluate localization and confidence calibration in the same pass:
Because each accumulator is independent, you can evaluate localization and confidence quality in the same pass:

```python
from stickler.structured_object_evaluator.models.confidence.accumulator import (
Expand Down Expand Up @@ -280,6 +280,6 @@ print(f"IoU: {iou:.3f}")
## See Also

- [Rich Value Pattern](rich-value-pattern.md) — how fields carry `_value`, `_confidence`, and `_bbox` metadata
- [Confidence Metrics](confidence-metrics.md) — evaluating prediction confidence calibration
- [Confidence Metrics](confidence-metrics.md) — evaluating prediction confidence quality
- [Classification Logic](classification-logic.md) — how match/no-match is determined
- [Comparators](../Guides/Comparators/README.md) — all available comparators
6 changes: 4 additions & 2 deletions docs/docs/Advanced/confidence-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,14 @@ AUROC treats confidence evaluation as a binary classification problem:

| AUROC Range | Interpretation |
|-------------|---------------|
| 0.7 - 1.0 | Well calibrated. Confidence correlates with correctness. |
| 0.7 - 1.0 | Confidence ranks right answers above wrong ones. |
| ~0.5 | Random. Confidence provides no signal. |
| < 0.5 | Inversely calibrated. Confidence correlates with errors. |
| < 0.5 | Confidence is higher on errors. |

AUROC returns `None` when all predictions match (no negative class) or all fail (no positive class).

AUROC measures ranking, not calibration. To check whether 0.9 means 90% right, use `ECEMetric` and compare each bin's `accuracy` with its `mean_confidence`. `BrierScoreMetric` also rewards confidence that separates right answers from wrong ones, so a lower Brier score alone does not mean better calibration.

## Error Capture at Review Budget

AUROC tells you confidence is useful. Error Capture at Review Budget tells you *how* useful in practical terms.
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/Advanced/rich-value-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ See [Bulk Evaluation: Map/Reduce](../Guides/Evaluation/bulk-evaluation.md#mapred

The pattern is designed for extensibility. Two metadata types are supported today:

- `_confidence` — consumed by the [Confidence Metrics](confidence-metrics.md) module for calibration scoring.
- `_confidence` — consumed by the [Confidence Metrics](confidence-metrics.md) module for confidence scoring.
- `_bbox` — consumed by the [Bounding Box mAP Metrics](bbox-map-metrics.md) module for localization scoring.

Known metadata keys are extracted into typed accessors (`_confidence` via `get_field_confidence()` / `get_all_confidences()`), while any other underscore-prefixed keys — including `_bbox` — are preserved in extras and read via `get_field_extras()` / `get_all_extras()`. The bbox metric reads boxes directly from `get_all_extras()`, so no dedicated `get_field_bbox()` accessor is needed. Future metadata types (e.g. source spans for provenance tracking) follow the same path: store them in a rich value and the relevant metric picks them up from extras.

## See Also

- [Confidence Metrics](confidence-metrics.md): evaluating confidence calibration quality
- [Confidence Metrics](confidence-metrics.md): evaluating confidence quality
- [Confidence Evaluation Guide](../Guides/Evaluation/confidence-evaluation.md): practical guide for using confidence metrics
- [Bounding Box mAP Metrics](bbox-map-metrics.md): evaluating bounding-box localization with mean Average Precision