PaddlePaddle / PaddleSpatial

PaddleSpatial is an open-source spatial-temporal computing tool based on PaddlePaddle.
Apache License 2.0
336 stars 167 forks source link

D3VAE: overwrites timestamps? #307

Closed timm-gatg closed 1 year ago

timm-gatg commented 1 year ago

Hi,

I came across something weird in the D3VAE code. In data_loader.py, line 93, you just manually overwrite the timestamps of the data:

df_stamp = pd.date_range(start='4/1/2018',periods=border2-border1, freq='H') data_stamp = time_features(df_stamp, timeenc=self.timeenc, freq=self.freq)

Can you tell me why that is?

yl4467 commented 1 year ago

hi, This is to read in some data sets with irregular time formats. We have tested that this operation does not affect the experimental results.