Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop in the Makefile #86

Open
Fuhan-Yang opened this issue Dec 18, 2024 · 0 comments
Open

Loop in the Makefile #86

Fuhan-Yang opened this issue Dec 18, 2024 · 0 comments

Comments

@Fuhan-Yang
Copy link
Contributor

          I strongly recommend you move away from for loops and toward functions here

This is where the Makefile or Snakemake will come in handy. Like, you're doing many different jobs:

  • For each combination of forecast date and model, do the forecast
  • For each model and score function (and forecast horizon?), score the model using the forecasts from the previous step
  • Report these out in a table?
  • Make some figures?

So rather than saying "what do I need to do for each date?" and putting that into a for loop, instead say "what are the different jobs I need to do?" and write a function for each one.

There will be looping logic somewhere, but it might be in the Makefile or snakefile

Originally posted by @swo in #82 (comment)

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

No branches or pull requests

1 participant