Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'temporal' split to PubMed (Planetoid) dataset. #9982

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nelsonaloysio
Copy link
Contributor

Adds new 'temporal' split to PubMed (Planetoid) dataset, at the moment available from Zenodo and GitHub.

This split was introduced in this paper to evaluate node-level clustering with static and temporal models.


With the changes introduced by this PR, the following code snippet:

from torch_geometric.datasets import Planetoid
dataset = Planetoid(root='.', name='pubmed', split='temporal')
data = dataset[0]

Returns the dataset with edge-level attribute time, plus edge-level train_mask, val_mask, and test_mask:

Data(x=[19717, 500], edge_index=[2, 88648], y=[19717],
     time=[88648], train_mask=[88648], val_mask=[88648], test_mask=[88648])

For a detailed description of this dataset split, please refer to the pubmed-temporal repository. :)

@nelsonaloysio nelsonaloysio requested a review from wsad1 as a code owner January 26, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant