Closed sgdy3 closed 1 year ago
Hi,
the function you refer to is at this line in the script:
which calls a method inherited from the base PandasDataset class in the library torch-spatiotemporal
:
https://github.com/TorchSpatiotemporal/tsl/blob/main/tsl/datasets/prototypes/mixin.py#L115-L129
This tensorflow tutorial explains well what is done in that function.
— Ivan
Thanks for your help, I understand now.
Hi, I've noticed that you have mentioned "we use sine and cosine transforms of the time step t w.r.t. a period of interest (e.g., day and/or week), to account for". However, I can't find corresponding code either in "positional_encodind" nor "utils.py". It this module not included in the repo and belonging to the dataset preprocessing part, or just because I miss some part of the repo. And I'm not very clear about how this transform works. Does it operate like positional encoding in “Attention is all you need" ?