Skip to content

Keep custom target column when calling forecaster.predict()#873

Merged
egordm merged 2 commits into
OpenSTEF:release/v4.0.0from
don-alejandrino:target-column-in-forecaster-predict
May 7, 2026
Merged

Keep custom target column when calling forecaster.predict()#873
egordm merged 2 commits into
OpenSTEF:release/v4.0.0from
don-alejandrino:target-column-in-forecaster-predict

Conversation

@don-alejandrino
Copy link
Copy Markdown
Contributor

@don-alejandrino don-alejandrino commented May 6, 2026

Fix: When calling a forecaster's predict(input_data) method, the target column from input_data was not carried over to the output ForecastDataset, so that the target column of the method's output is always the default "load" value. This led to errors in the downstream postprocessing.

Should fix #871.

…rget column from `input_data` was not carried over to the output `ForecastDataset`, so that the target column of the method's output is always the default "load" value. This led to errors in the downstream postprocessing.

Signed-off-by: Alexander Geiseler <don-alejandrino@outlook.com>
@don-alejandrino don-alejandrino requested a review from a team May 6, 2026 19:39
@don-alejandrino don-alejandrino changed the title Keep custom target column when calling forecaster.predict() Keep custom target column when calling forecaster.predict() May 6, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

Copy link
Copy Markdown
Collaborator

@egordm egordm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice find. LGTM!

@egordm egordm merged commit 887f063 into OpenSTEF:release/v4.0.0 May 7, 2026
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.

2 participants