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

How to set num_samples, top_k, top_p and temperature? #16

Open
abdulfatir opened this issue Mar 18, 2024 · 0 comments
Open

How to set num_samples, top_k, top_p and temperature? #16

abdulfatir opened this issue Mar 18, 2024 · 0 comments
Labels
FAQ Frequently asked question

Comments

@abdulfatir
Copy link
Contributor

Opening this as a FAQ.

  • num_samples specifies the number of sample forecast paths that will be generated to construct the probabilistic forecast. We used 20 samples in the paper for all models. Using a larger value will improve the estimation of the quantiles, likely resulting in better probabilistic metrics.
  • top_k, top_p and temperature mean the same thing as in the case of LLMs. Check out transformers documentation for details. We used the defaults from the transformers library and did not tune these parameters. However, one might improve the accuracy of the forecasts further by carefully selecting these parameters (Let us know if you do that and have some insights!). Particularly, selecting a larger value for top_k may lead to a better coverage for certain time series. In our qualitative analysis (e.g., Fig. 12 in the paper), we set top_k = vocab_size which led to better prediction intervals than the default value of 50.
@abdulfatir abdulfatir added the FAQ Frequently asked question label Mar 18, 2024
@lostella lostella pinned this issue Mar 18, 2024
@lostella lostella unpinned this issue Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ Frequently asked question
Projects
None yet
Development

No branches or pull requests

1 participant