Skip to content

fix: accept X values up to the starting index in propagation prediction - #23

Merged
tc-mateus merged 1 commit into
DataHow:mainfrom
fabianbalsiger:fix/x-history-with-starting-index
Oct 30, 2026
Merged

tc-mateus merged 1 commit into
DataHow:mainfrom
fabianbalsiger:fix/x-history-with-starting-index

Conversation

@fabianbalsiger

Copy link
Copy Markdown
  • Allows X variables to be passed with their values from the first timestamp up to and including starting_index (length starting_index + 1), in addition to the single value at starting_index from feat: support starting index in CultivationPropagationModel prediction #10
  • Fixes prediction from starting_index > 0 for models that propagate from the start of the run and need the X values from there (failed with AssertionError: Invalid indices found in prediction dataset.)
  • Values in between may be None; the first value and the value at starting_index must be numeric
  • Single value, filtering and the other variable groups behave as before
  • Adds tests; tested end to end with the propagation models

Without filtering, X inputs of a propagation prediction had to be a
single value, sent at the starting index. Models that propagate from
the start of the run, such as the continuous hybrid model, need the
initial conditions at step 0, so predicting from a starting index other
than 0 failed for them.

X inputs can now also be given their values from the first timestamp up
to and including the starting index (length starting_index + 1). Gaps in
between may be None; the first value and the value at the starting index
must be numeric. A single value keeps the current behaviour.
@tc-mateus
tc-mateus merged commit 9649308 into DataHow:main Oct 30, 2026
1 of 3 checks passed
@fabianbalsiger
fabianbalsiger deleted the fix/x-history-with-starting-index branch October 30, 2026 12:37
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.

2 participants