[OpenSTEF 4.0] Move filtering for nans in target label outside of model code

Open
#722 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by finding the NaN filtering in the fit methods of the XGBoost and GBLinear forecasting models, which the issue says were added in PR #697, and the pipeline code that calls those models. Pick a single central place in the pipeline to drop NaN target rows, then remove the per-model filters. Done when both models train on data with NaN labels, such as DST-change timestamps, without crashing, and the existing tests still pass.

Written by the indexing model from the issue text.

Description

fix OpenSTEF 4.0

Is your feature request related to a problem? Please describe.
After PR #697 within the XGBoost and GBLinear forecasting models there is a filtering for nans in the fit method. If this is not done, the fit will crash for example on moments where DST changes and NANs are created, or other reasons why NANs in the label end up in the pipeline.

Describe the solution you'd like
This filtering logic should be moved from inside each model to a central place within the pipeline.

Dominant language
Python
Stars
169
Forks
59
Avg merge
4d 15h
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenSTEF/openstef

All issues in OpenSTEF/openstef

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.