You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During my learning, I find that an undefined function "rand_train_test_idx()" is invoked in line 284 of the dataloader.py:
defget_idx_split(self, split_type="random", train_prop=0.5, valid_prop=0.25):
""" train_prop: The proportion of dataset for train split. Between 0 and 1. valid_prop: The proportion of dataset for validation split. Between 0 and 1. """ifsplit_type=="random":
ignore_negative=Falseifself.name=="ogbn-proteins"elseTruetrain_idx, valid_idx, test_idx=rand_train_test_idx(
self.label,
train_prop=train_prop,
valid_prop=valid_prop,
ignore_negative=ignore_negative,
)
split_idx= {"train": train_idx, "valid": valid_idx, "test": test_idx}
returnsplit_idx
Is that a customed function?
Looking forward to your reply!
The text was updated successfully, but these errors were encountered:
Dear authors,
Thank you for releasing your work!
During my learning, I find that an undefined function "
rand_train_test_idx()
" is invoked in line 284 of thedataloader.py
:Is that a customed function?
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: