[OpenSTEF 4.0] Inconsistent behavior of forecasters in v4

Open
#881 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

A pull request for this has already been merged.

  • #963 by @lschilders — merged

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

This is a design question, not a ready change: it asks whether FlatlinerForecaster and ConstantQuantileForecaster should return predictions for every timestamp in the input to predict(), like the other forecasters, or whether live-only forecasters should become an explicit concept. Linked pull request #963 is already merged, so check what it changed before proposing anything. Done means maintainers agree on one approach and the chosen behaviour is documented and tested.

Written by the indexing model from the issue text.

Description

I'm having difficulties wrapping my head around the forecasters in v4.

Most of them work as I would expect -- you call predict() on some input data, and get forecasts for the timestamps in the input data. So it's straightforward to use them either in a "live" or a back-test mode.

On the other hand, there are FlatlinerForecaster and ConstantQuantileForecaster, which only return predictions within a small window defined by the maximum horizon, irrespective of the rest of the timestamps in the input data. I assume that these are suitable for "live" mode only.

I find these different behaviors of the forecasters quite confusing, since at first sight it seems as if they can be used interchangeably. But basically, currently there are two classes of forecasters. So would it make sense, to either

  • adapt FlatlinerForecaster and ConstantQuantileForecaster, so that these also return predictions for all timestamps in the input data, or
  • formally introduce the concept of "live"-mode-only forecasters in OpenSTEF?
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.