torch_geometric.datasets.JODIEDataset
- class JODIEDataset(root: str, name: str, transform: Optional[Callable] = None, pre_transform: Optional[Callable] = None, force_reload: bool = False)[source]
Bases:
InMemoryDataset
The temporal graph datasets from the “JODIE: Predicting Dynamic Embedding Trajectory in Temporal Interaction Networks” paper.
- Parameters:
root (str) – Root directory where the dataset should be saved.
name (str) – The name of the dataset (
"Reddit"
,"Wikipedia"
,"MOOC"
, and"LastFM"
).transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Data
object and returns a transformed version. The data object will be transformed before every access. (default:None
)pre_transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Data
object and returns a transformed version. The data object will be transformed before being saved to disk. (default:None
)force_reload (bool, optional) – Whether to re-process the dataset. (default:
False
)
STATS:
Name
#nodes
#edges
#features
#classes
Reddit
6,509
25,470
172
1
Wikipedia
9,227
157,474
172
2
MOOC
7,144
411,749
4
2
LastFM
1,980
1,293,103
2
1