Closed JavaStudentAlex closed 1 year ago
I am using the 0.54 version of the pytorch geometric temporal. In example code file examples/recurrent/a3tgcn2_example.py there is such snippet of code:
examples/recurrent/a3tgcn2_example.py
from torch_geometric_temporal.dataset import METRLADatasetLoader loader = METRLADatasetLoader() dataset = loader.get_dataset(num_timesteps_in=12, num_timesteps_out=12) print("Dataset type: ", dataset) print("Number of samples / sequences: ", len(set(dataset)))
When I try to run the code I get the error:
TypeError Traceback (most recent call last) Cell In[22], line 4 2 dataset = loader.get_dataset(num_timesteps_in=12, num_timesteps_out=12) 3 print("Dataset type: ", dataset) ----> 4 print("Number of samples [/](https://file+.vscode-resource.vscode-cdn.net/) sequences: ", len(set(dataset))) TypeError: unhashable type: 'Data'
As far as I got we would like to see the number of time snapshots. I would offer to use dataset.snapshot_count instead.
dataset.snapshot_count
I am using the 0.54 version of the pytorch geometric temporal. In example code file
examples/recurrent/a3tgcn2_example.py
there is such snippet of code:When I try to run the code I get the error:
As far as I got we would like to see the number of time snapshots. I would offer to use
dataset.snapshot_count
instead.