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

A question about hyper-parameter "fftwarmlen" #2

Open
zhycs opened this issue Mar 24, 2023 · 1 comment
Open

A question about hyper-parameter "fftwarmlen" #2

zhycs opened this issue Mar 24, 2023 · 1 comment

Comments

@zhycs
Copy link

zhycs commented Mar 24, 2023

Hi, very lucky to read this wonderful paper on periodical modeling and saw your publicly available code.

However, I am confused about some parameters in your code but it is not mentioned in your paper. That is "fftwarmlen" used in the "function warm_PM_parameters_perK" (utils.py - line 100). It is set in different constants varying with datasets, and then determines the length of the FFT handled. Could you tell me how to set its value?

@weifantt
Copy link
Owner

Thanks for your interest. This parameter "fftwarmlen" is to control a time interval that is used to select most useful periods. Thus, from 0 to (len(train_series) -"fftwarmlen"), it is used to conduct FFT. From (len(train_series) -"fftwarmlen") to len(train_series), it is used to select periods. The different parameter setting of different dataset is by considering the length of the overall series. For example, given a 8-year time series data, you can use 6-year data to init FFT and use the left 2-year data to select periods. Generally, this parameter is not a big deal to final performance; thus you can select a meaningful parameter as you like.

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

2 participants