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 glnn #205

Merged
merged 8 commits into from
Jun 4, 2024
Merged

Add glnn #205

merged 8 commits into from
Jun 4, 2024

Conversation

UNAOUN
Copy link
Contributor

@UNAOUN UNAOUN commented May 28, 2024

Description

add glnn model

Changes

  1. add glnn to examples (train_teacher.py, train_student.py, train.conf.yaml, readme.md)
  2. add get_train_val_test_split.py to utils, add get_train_val_test_split to utils/init.py
  3. add get_train_val_test_split to docs/source/api/gammagl.utils.rst

val_idx = mask_to_index(graph.val_mask)
t_idx = tlx.concat([train_idx, test_idx, val_idx], axis=0)
elif args.dataset in ['computers', 'photo']:
train_mask, val_mask, test_mask = get_train_val_test_split(dataset, train_per_class=20, val_per_class=30)
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally, you may get the mask through the dataset.train_mask. So, it would be better to modify the gammagl.dataset.Amazon.

Copy link
Contributor Author

@UNAOUN UNAOUN May 29, 2024

Choose a reason for hiding this comment

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

The requested modifications have been made to train_teacher.py, train_student.py,gammagl.dataset.Amazonand gammagl.utils.get_train_val_test_split.
Thank you for the reminder!

test_idx = mask_to_index(graph.test_mask)
val_idx = mask_to_index(graph.val_mask)
elif args.dataset in ['computers', 'photo']:
train_mask, val_mask, test_mask = get_train_val_test_split(dataset, train_per_class=20, val_per_class=30)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

@gyzhou2000 gyzhou2000 merged commit c8d05e2 into BUPT-GAMMA:main Jun 4, 2024
1 check passed
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.

3 participants