https://github.com/nixtla logo
#neural-forecast
Title
# neural-forecast
a

Angel Berihuete Macías

04/28/2023, 7:28 AM
Hi everyone. I want to use Neuralforecast to predict the offset produced by a ground-based telescope in different time series, but these time series are unevenly spaced time series. Is it possible to use models (like AutoNBEATSx or AutoNHITS) with these kind of time series?
f

Farzad E

04/28/2023, 10:51 AM
Having a variable sampling rate is an interesting issue. My approach in the past has been resampling the signal at a fixed rate. But I would be very interested to know if there is a forecasting technique that can natively handle signals with time-varying frequencies.
c

Cristian (Nixtla)

04/28/2023, 11:59 PM
Hi @Angel Berihuete Macías! The current methods do not natively incorporate the time delta between timestamps to make predictions. They fundamentally assume the time delta between samples is constant. Having unevenly spaced time series will lead to unexpected behaviour, probably producing inaccurate forecasts. I suggest, as Farzad mentioned, to resample the signal.
👍 2
a

Angel Berihuete Macías

05/01/2023, 5:51 PM
Many thanks!
@Farzad E, could you point me out to examples on how to resampling the signal at a fixed rate?
f

Farzad E

05/02/2023, 5:54 PM
I don't have an example handy. I used to do it in MATLAB years ago when I was doing signal processing. You need to either upsample or downsample to get to a uniform frequency. I haven't done it in Python but I'm sure there are libraries for it. If you were going to write your own code you would take the largest time step you have and interpolate your signal at those intervals for downsampling. Numpy does the interpolation if you give it your timestamps. For upsampling you can take the smallest time interval you have and repeat the same process. You can also choose any time interval between your smallest and largest.
a

Angel Berihuete Macías

05/03/2023, 7:37 AM
Thank you for your advice @Farzad E!
👍 1
4 Views