Skip to content

Time gap between the lookback period and the forecast period #470

Answered by kdgutier
EdxDv asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @EdxDv,

  • The simplest solution is to continue with a normal NeuralForecast model and filter the predictions to only keep them after the first p horizon steps.
  • If you want to explore a simple model customization an interesting possibility would be to hack the horizon mask in the training_step method to make the loss function to only depend on the observations after p. This second solution can be achieved simply by overwriting a NeuralForecast model train_step.

Let us know your thoughts.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@EdxDv
Comment options

@EdxDv
Comment options

@kdgutier
Comment options

Answer selected by EdxDv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants