Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e2de968
docs: state the list contract in one place, and correct the claims th…
sromoam Oct 16, 2026
ecaaecd
docs: link the None-list row gap to #418
sromoam Oct 16, 2026
91928e7
docs: link the first-pair mean_score exception to #428
sromoam Oct 19, 2026
9193892
Merge remote-tracking branch 'origin/dev' into docs/lists-contract
sromoam Oct 20, 2026
94f8401
Merge remote-tracking branch 'origin/dev' into m419
sromoam Oct 28, 2026
260fc04
docs: narrow the raw_similarity_score gap to List[StructuredModel] af…
sromoam Oct 28, 2026
1dd9089
Merge origin/dev into docs/lists-contract
sromoam Nov 17, 2026
a17dc85
docs(lists): correct the list contract against dev
sromoam Nov 17, 2026
0597663
docs(results): drop the fixed match gap and correct weighted_score fo…
sromoam Nov 17, 2026
789509f
docs(thresholds): correct what the runtime match_threshold gates
sromoam Nov 17, 2026
71fc040
docs(threshold-gated): qualify equal-length pairing for None, link th…
sromoam Nov 17, 2026
63af654
docs(hungarian): make the Result Structure checkable and nest leaf co…
sromoam Nov 17, 2026
ec0a2f9
docs: point list clipping at the Score rule, and limit the unordered …
sromoam Nov 17, 2026
5528a7e
docs(auto): state every effect of the runtime match_threshold in the …
sromoam Nov 17, 2026
d7dd08b
docs(changelog): re-add the list contract entry under Unreleased
sromoam Nov 17, 2026
4782d50
docs(auto): describe the List[BaseModel] clip gap without an issue link
sromoam Nov 17, 2026
e1d4e47
docs(lists): word the known gaps as defects, not as places the table …
sromoam Nov 17, 2026
174ed08
docs(thresholds): the runtime match_threshold also gates zero-config …
sromoam Nov 17, 2026
8150c77
docs: clip_under_threshold is off by default on dict and plain-model …
sromoam Nov 17, 2026
310a741
docs: qualify the equal-length pairing claims for None elements
sromoam Nov 17, 2026
90db276
docs(lists): scope the order claim to a list field's elements
sromoam Nov 17, 2026
9de4212
docs(lists): mark the List[StructuredModel] clip behaviour as a known…
sromoam Nov 17, 2026
e649f73
docs(lists): fix the review nits on reports, null lists and examples
sromoam Nov 17, 2026
0a314cf
docs(lists): scope the Reports row to field_comparisons, and say non_…
sromoam Nov 17, 2026
3218bc4
docs(lists): scope the clip defaults to a StructuredModel declared in…
sromoam Nov 17, 2026
23bc208
docs(json-schema): x-aws-stickler-infer-unspecified also infers the c…
sromoam Nov 17, 2026
6330692
docs(json-schema): keep the clip Default cell at true, and put the in…
sromoam Nov 17, 2026
69e178c
Merge origin/dev into docs/lists-contract
sromoam Nov 17, 2026
1d7ae07
docs(thresholds): fix the list rows the dev merge left inconsistent
sromoam Nov 17, 2026
aea762b
docs(thresholds): keep the List[StructuredModel] exception in Key Rul…
sromoam Nov 17, 2026
9a375d3
Merge branch 'dev' into docs/lists-contract
sromoam Nov 18, 2026
b918a52
Merge origin/dev into docs/lists-contract
sromoam Nov 18, 2026
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
Prev Previous commit
Next Next commit
docs(results): drop the fixed match gap and correct weighted_score fo…
…r list rows

#364 made a nested list row's match a bool and built element rows with the
field's comparator, so the 'On dev' sentence is removed. A primitive list
element row's weighted_score is its raw, unclipped similarity, unweighted.
The clip note now points at the Score rule instead of restating it, and the
remaining gaps link the contract's known-gaps note instead of issues.
  • Loading branch information
sromoam committed Nov 17, 2026
commit 059766378d27560909f5e8ba04f0f82c294cdbf4
10 changes: 5 additions & 5 deletions docs/docs/Guides/Evaluation/understanding-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A weighted average of all field scores, ranging from 0.0 to 1.0. Calculated as:
overall_score = sum(field_score * field_weight) / sum(field_weights)
```

Fields with `clip_under_threshold=True` (the default) contribute 0.0 if they score below their threshold, rather than their partial similarity. A list field is not clipped as a whole: the rule applies per element ([list contract](../../Advanced/classification-logic.md#list-contract)).
Fields with `clip_under_threshold=True` (the default) contribute 0.0 if they score below their threshold, rather than their partial similarity. A list field follows the [Score](../../Advanced/classification-logic.md#list-contract) rule of the list contract instead.

A field absent on both sides scores `1.0` and carries its full weight: a value the model correctly left blank is a value it got right. On a schema where most fields are usually empty this makes `overall_score` behave more like accuracy than like a hit rate. See [Sparse Objects](../../Getting-Started/thresholds-and-metrics.md#sparse-objects) for which metric answers which question.

Expand Down Expand Up @@ -370,7 +370,7 @@ For list fields (e.g., products, line items), non-match entries can be at the ob

## Field Comparisons

When you pass `document_field_comparisons=True`, the result includes a `field_comparisons` list documenting every individual field comparison -- both matches and non-matches. For a list there is one row per primitive element or per leaf of a TP item, and one object row per FD, FN or FA item ([Reports](../../Advanced/classification-logic.md#list-contract)). Inside a list item, a nested list or object currently gets one row instead of being expanded ([#418](https://github.com/awslabs/stickler/issues/418)).
When you pass `document_field_comparisons=True`, the result includes a `field_comparisons` list documenting every individual field comparison -- both matches and non-matches. For a list there is one row per primitive element or per leaf of a TP item, and one object row per FD, FN or FA item ([Reports](../../Advanced/classification-logic.md#list-contract)). Inside a list item, a nested list or object gets one row instead of being expanded, a [known gap](../../Advanced/classification-logic.md#list-contract).

```python
result = ground_truth.compare_with(prediction, document_field_comparisons=True)
Expand All @@ -388,9 +388,9 @@ Each entry contains:
| `expected_value` | any | The ground truth value. |
| `actual_key` | string | Field path in prediction (may differ for list items due to Hungarian matching). |
| `actual_value` | any | The predicted value. |
| `match` | bool | Whether the row's own classification is TP or TN: a value or object row met its threshold; a list row had every element paired as a TP ([Reports](../../Advanced/classification-logic.md#list-contract)). On `dev` a list row inside a list item still carries the string `"True"`/`"False"` from its score against the field threshold, and primitive, dict and plain-model element rows come from an equality pairing; [#364](https://github.com/awslabs/stickler/pull/364) brings both to this rule. |
| `score` | float | Raw similarity score. Inside a list item it is currently the clipped score ([#418](https://github.com/awslabs/stickler/issues/418)). |
| `weighted_score` | float | The clipped score multiplied by the field's weight. A list element row ignores the list field's weight: a primitive element or object row carries its score unweighted, and a leaf of a TP item uses the leaf's own weight. |
| `match` | bool | Whether the row's own classification is TP or TN: a value or object row met its threshold; a list row had every element paired as a TP ([Reports](../../Advanced/classification-logic.md#list-contract)). |
| `score` | float | Raw similarity score. Inside a list item it is the clipped score, a [known gap](../../Advanced/classification-logic.md#list-contract). |
| `weighted_score` | float | For a value row, the clipped score multiplied by the field's weight. A list element row ignores the list field's weight: a primitive element row carries its raw, unclipped similarity, an object row carries its score, and a leaf of a TP item uses the leaf's own weight. |
| `reason` | string | Human-readable explanation. |

This is useful for comprehensive auditing of all comparisons, not just failures.
Expand Down