-
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
Sub-second data with various frequencies #72
Comments
Hi @lhtfb ! Apologies for the delayed response.
which is basically constructing lags for the "second" seasonality (60 seconds, 120 seconds etc.), "minute" seasonality lags (60 minutes, 120 minutes etc. but returning the appropriate lag index for the "second-frequency" data), hourly seasonality lags (24 hours, 48 hours etc. but returning the appropriate lag index for the "second-frequency" data). What you really need is the "second frequency" lags, but Gluon gives you long-term lags also based on other seasonalitites which might exist in your data. You might or might not stick with this approach when writing the wrapper for the millisecond frequency. You might want to write something like this (I have not tested this):
|
Hi @lhtfb! Just following up on this issue, if it's resolved / I can close it. |
Hi @ashok-arjun, I find estimator.train() will complain about the data spacing is not uniform, any idea of how to work around it?
update: I find I can set |
Hi @ashok-arjun, one additional question: we have to change time feature from "S" to "L" right?
|
That's for time features. It won't work if you change it when you use the pretrained model (it's trained to use |
Thank you for the response. I'm training my own model with milliseconds as base freq. I have one more question and it'd be much appreciated if you could tell me how the time features are used, are they turned into embeddings and combined with input in an additive way like positional encodings (and on top of positional encodings)? |
They're concatenated with the input (lags) before the input is passed to the transformer - see https://github.com/time-series-foundation-models/lag-llama/blob/main/lag_llama/model/module.py#L537 |
I see, thank you. |
Hi! Thank you a lot for your work!
I have a small question regarding lag frequencies.
https://ts.gluon.ai/v0.11.x/_modules/gluonts/time_feature/lag.html#get_lags_for_frequency
As I understand this article, the smallest frequency is 1 second. However, is it possible to go into the millisecond range by any chance?
Additionally, what should I do if my data is not constant, like it has lags of 0.3s, 0.5s, 1.2s, 0.5s, 0.8s, etc.? Rearranging data to a constant lag might significantly reduce quality.
The text was updated successfully, but these errors were encountered: