Skip to content

Clamp calibration zoom to probability bounds - #312

Merged
uriahf merged 2 commits into
mainfrom
agent/clamp-calibration-padding
Aug 18, 2026
Merged

Clamp calibration zoom to probability bounds#312
uriahf merged 2 commits into
mainfrom
agent/clamp-calibration-padding

Conversation

@uriahf

@uriahf uriahf commented Aug 18, 2026

Copy link
Copy Markdown
Owner

What changed

  • keep the existing 5% calibration-axis padding
  • clamp the final padded range to [0, 1]
  • add regression tests for near-zero, near-one, and mid-range calibration data

Why

The lower bound was clamped before padding, so the padding step could reintroduce negative probability space. This preserves the intended breathing room without displaying impossible probabilities.

Scope

No changes to the square-panel behavior or histogram geometry.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-18 08:53 UTC

@uriahf
uriahf merged commit 25bdf9d into main Aug 18, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant