-
Hi, from pygod.utils import load_data
data = load_data('inj_cora')
print(data)
Data(x=[2708, 1433], edge_index=[2, 11060], y=[2708], train_mask=[2708], val_mask=[2708], test_mask=[2708]) I wanted to know more about he usage of train_mask, val_mask and test_mask here? auc_score = eval_roc_auc(data.val_mask.numpy(), outlier_scores) Does this make sense? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Thanks for your questions! Actually the masks are inherited from PyG built-in Cora dataset. In current PyGOD unsupervised setting, there is no need to use the masks. Computing the loss and evaluating on all nodes are acceptable. Of course, if you only want to compute the loss for part of the nodes (e.g., the nodes in the validation mask), you can definitely do so. |
Beta Was this translation helpful? Give feedback.
Thanks for your questions! Actually the masks are inherited from PyG built-in Cora dataset. In current PyGOD unsupervised setting, there is no need to use the masks. Computing the loss and evaluating on all nodes are acceptable. Of course, if you only want to compute the loss for part of the nodes (e.g., the nodes in the validation mask), you can definitely do so.