Skip to content

Fix RandomNodeSplit HeteroData bug for unlabeled nodes (#10632)#10659

Open
ninjitsuytber wants to merge 4 commits into
pyg-team:masterfrom
ninjitsuytber:fix/issue-10632
Open

Fix RandomNodeSplit HeteroData bug for unlabeled nodes (#10632)#10659
ninjitsuytber wants to merge 4 commits into
pyg-team:masterfrom
ninjitsuytber:fix/issue-10632

Conversation

@ninjitsuytber
Copy link
Copy Markdown

This PR fixes a bug where RandomNodeSplit failed on HeteroData objects when some node types lacked a label attribute (y), even if the split mode (train_rest) didn't require them.

The fix ensures that node stores without labels are only skipped for split modes that actually require labels (test_rest or random).

Updated unit tests to cover HeteroData scenarios with unlabeled node types.

Fixes #10632.

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.

RandomNodeSplit fails on HeteroData

1 participant