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 relabel node functionality to dropout_node #8524

Merged
merged 23 commits into from
Dec 5, 2023

Conversation

will-leeson
Copy link
Contributor

Currently, the dropout_node function removes any edge containing a dropped node from the edge_index. It also produces an node mask to remove nodes encodings from x. However, the edge_mask doesn't have the option to relabel nodes accordingly. If node n is dropped and we use the node mask, node n+1 is now the nth node in x, but the edge set still references it as n+1.

This functionality can be added by feeding the relabel node flag directly to the subgraph call in relabel_node

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1e92ba2) 88.38% compared to head (fbfe532) 88.50%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8524      +/-   ##
==========================================
+ Coverage   88.38%   88.50%   +0.11%     
==========================================
  Files         479      479              
  Lines       29721    29714       -7     
==========================================
+ Hits        26270    26299      +29     
+ Misses       3451     3415      -36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@EdisonLeeeee EdisonLeeeee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@rusty1s rusty1s changed the title Add relabel node functionality to dropout_node Add relabel node functionality to dropout_node Dec 5, 2023
@rusty1s rusty1s merged commit db826ee into pyg-team:master Dec 5, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants