Skip to content

Normalize integer fixed time horizons - #292

Merged
uriahf merged 1 commit into
mainfrom
agent/normalize-time-horizons
Aug 11, 2026
Merged

Normalize integer fixed time horizons#292
uriahf merged 1 commit into
mainfrom
agent/normalize-time-horizons

Conversation

@uriahf

@uriahf uriahf commented Aug 11, 2026

Copy link
Copy Markdown
Owner

What changed

  • normalizes fixed_time_horizons to floats at the shared prepare_binned_classification_data_times() entry point
  • makes integer horizons such as [3, 6, 9] equivalent to [3.0, 6.0, 9.0]
  • updates the time-dependent performance-data docstrings to describe numeric horizons rather than requiring callers to know the internal dtype

Why

Integer horizons could previously propagate as i64 while downstream time/AJ data used f64, leaking an opaque Polars join-key datatype mismatch. The public API should treat integer and floating-point representations of the same time horizon identically.

Scope

This PR only addresses horizon normalization in the shared time-dependent performance-data path. It does not change calibration heuristic behavior or defaults.

@github-actions

github-actions Bot commented Aug 11, 2026

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

@uriahf
uriahf marked this pull request as ready for review August 11, 2026 16:36
@uriahf
uriahf merged commit be9b4dd into main Aug 11, 2026
3 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