-
Notifications
You must be signed in to change notification settings - Fork 156
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
ValueError: invalid frequency | freq_str=Q
-> offset_name=QE
#110
Comments
What frequency are you using? |
Hi @ashok-arjun, Thanks for your excellent work.
|
I recieve the same error "ValueError: invalid frequency | freq_str=Q -> offset_name=QE" running "forecasts, tss = get_lag_llama_predictions(backtest_dataset, prediction_length, device, num_samples)" with my own data. The frequence of my data is freq='D' Any Solutions on this topic so far? |
so i have updated the API to use the latest gluonts if you want to try it out... I am in the process of updating the colab notebooks |
When I run "forecasts, tss = get_lag_llama_predictions(backtest_dataset, prediction_length, device, num_samples)" with my own data...I'm having an invalid frequency error. Kindly help....
Error:
:2: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value forweights_only
will be flipped toTrue
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user viatorch.serialization.add_safe_globals
. We recommend you start settingweights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.ckpt = torch.load("lag-llama.ckpt", map_location=device) # Uses GPU since in this Colab we use a GPU.
ValueError Traceback (most recent call last)
in <cell line: 1>()
----> 1 forecasts, tss = get_lag_llama_predictions(backtest_dataset, prediction_length, device, num_samples)
3 frames
/usr/local/lib/python3.10/dist-packages/gluonts/time_feature/lag.py in get_lags_for_frequency(freq_str, lag_ub, num_lags, num_default_lags)
147 )
148 else:
--> 149 raise ValueError(f"invalid frequency |
freq_str={freq_str}
->offset_name={offset_name}
")150
151 # flatten lags list and filter
ValueError: invalid frequency |
freq_str=Q
->offset_name=QE
The text was updated successfully, but these errors were encountered: