-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add glnn #205
Conversation
examples/glnn/train_student.py
Outdated
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) |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.Amazon
and gammagl.utils.get_train_val_test_split
.
Thank you for the reminder!
examples/glnn/train_teacher.py
Outdated
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Description
add glnn model
Changes