Skip to content
Closed
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 @@ -9,6 +9,12 @@ Each release links to full notes on the

## [Unreleased]

### Changed

- Demote `EvaluatorFormatHelper` to module-level functions in a new
`evaluator_output.py`. Part of the `models/` helper-module consolidation
towards #134 ([#196](https://github.com/awslabs/stickler/pull/196))

## [0.6.0] - 2026-07-30

### Added
Expand Down
6 changes: 3 additions & 3 deletions docs/structured_model_REFACTORING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Specialized Components (selected — ~36 modules total in models/):
├── Reporting
│ ├── NonMatchCollector - Object- and field-level non-matches
│ ├── FieldComparisonCollector - document_field_comparisons output
│ └── EvaluatorFormatHelper - evaluator_format output
│ └── evaluator_output - evaluator_format output
├── Confidence (v0.4.0+)
│ └── models/confidence/ - AUROC and other calibration metrics
│ used when compare_with(add_confidence_metrics=True, ...)
Expand Down Expand Up @@ -252,7 +252,7 @@ See the docstring on `StructuredModel` (`structured_model.py`) for the in-code c
- `StructuredListComparator` - lists of StructuredModels via Hungarian + threshold-gated nested analysis
- `ConfusionMatrixBuilder` / `ConfusionMatrixCalculator` / `AggregateMetricsCalculator` / `DerivedMetricsCalculator`
- `NonMatchCollector` and `FieldComparisonCollector`
- `EvaluatorFormatHelper`
- `evaluator_output` (`format_for_evaluator`, `calculate_list_item_metrics`)
- `models/confidence/` - the confidence-calibration pipeline used when `compare_with(add_confidence_metrics=True, ...)`

## Extending the System
Expand Down Expand Up @@ -380,7 +380,7 @@ These methods still exist on `StructuredModel` as thin delegating shims for back
| `_calculate_single_nested_field_metrics` | `ConfusionMatrixCalculator.calculate_single_nested_field_metrics` |
| `_add_derived_metrics_to_result` | `DerivedMetricsCalculator.add_derived_metrics_to_result` |
| `_collect_enhanced_non_matches` | `NonMatchCollector.collect_enhanced_non_matches` |
| `_format_for_evaluator` | `EvaluatorFormatHelper.format_for_evaluator` |
| `_format_for_evaluator` | `evaluator_output.format_for_evaluator` |

## Performance Considerations

Expand Down
2 changes: 1 addition & 1 deletion src/stickler/structured_object_evaluator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ The Structured Object Evaluator has been optimized to eliminate redundant Hungar
- `structured_model.py`: Updated to use single Hungarian matching call
- `structured_list_comparator.py`: Optimized list comparison logic
- `comparison_helper.py`: Updated helper methods
- `evaluator_format_helper.py`: Updated evaluator formatting
- `evaluator_output.py` (then `evaluator_format_helper.py`): Updated evaluator formatting

**Testing**: All 374 existing tests pass, ensuring no regression in functionality.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ its `from_json()` ingestion and `compare_with()` comparison pipeline.
`field_comparisons` rows (each carries a GT-side `expected_key` and a
prediction-side `actual_key`, which diverge for reordered list items).
- `non_match_collector.py`, `null_helper.py`, `result_helper.py`,
`evaluator_format_helper.py` — result shaping.
`evaluator_output.py` — result shaping.

**Metrics**
- `confusion_matrix_builder.py`, `confusion_matrix_calculator.py`,
Expand Down

This file was deleted.

Loading