Graph-Machine-Learning-Group / spin

Official repository for the paper "Learning to Reconstruct Missing Data from Spatiotemporal Graphs with Sparse Observations" (NeurIPS 2022)
https://arxiv.org/abs/2205.13479
MIT License
48 stars 8 forks source link

running bug #8

Closed GitHub-TXZ closed 1 year ago

GitHub-TXZ commented 1 year ago

I ran your demo code by
python ./experiments/run_imputation.py --config imputation/spin.yaml --model-name spin --dataset-name bay_block

Traceback (most recent call last): File "./experiments/run_imputation.py", line 303, in run_experiment(args) File "./experiments/run_imputation.py", line 172, in run_experiment time_emb = dataset.datetime_encoded(['day', 'week']).values File "/home/txz/.conda/envs/spin/lib/python3.8/site-packages/tsl/datasets/prototypes/mixin.py", line 83, in datetime_encoded mapping = {un: pd.to_timedelta('1' + un).delta File "/home/txz/.conda/envs/spin/lib/python3.8/site-packages/tsl/datasets/prototypes/mixin.py", line 83, in mapping = {un: pd.to_timedelta('1' + un).delta AttributeError: 'Timedelta' object has no attribute 'delta'

marshka commented 1 year ago

Hi, this error may be due to the pandas version you are using. Please try with pandas>=1.4.