-
Notifications
You must be signed in to change notification settings - Fork 59
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
runtime error of _prepare_subgraphs for negative data #14
Comments
|
Encounter the same error. Did you guys solve it? thank you! |
My python version is 3.8.10. I installed the author's requirements in a virtual environment and got similar errors. The assertion error is due to not finding any edge between node 0 and node 1 to begin with. I found that returning an empty array would help instead of throwing this error. I changed the code in subgraph_extraction/datasets.py line 147 from
Doing this step eliminated the assertion error but the code threw another dimension mismatch error for me in managers/trainer.py file line 58 where they compute the loss: I fixed it by making this modification:
Hope it helps you all. |
Do you meet the following problem when you run the code?
subgraphs_neg.append(self._prepare_subgraphs(nodes_neg, r_label_neg, n_labels_neg))
Exception has occurred: AssertionError
For return_array=False, there should be one and only one edge between u and v, but get 0 edges. Please use return_array=True instead
The text was updated successfully, but these errors were encountered: