-
Notifications
You must be signed in to change notification settings - Fork 0
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
Suspected issue in local_attachment_tensor.py #94
Comments
related issue #73 |
@vmgaribay I noticed your fixes to
model = dgl_ptm.PovertyTrapModel(model_identifier='my_model')
model.set_model_parameters(steering_parameters={'step_type':'custom'})
model.initialize_model()
print(f"Number of edges start: {model.model_graph.number_of_edges()}")
model.run()
print(f"Number of edges after run: {model.model_graph.number_of_edges()}")
|
I hope these were appropriate answers, but if anything needs clarification, please reach out. |
check the implementation of local_attachment_tensor for duplication of edges which give rise to the link deletion having removed an edge and then subsequently retryiing and failiing for the already removed edge. |
@vmgaribay and @meiertgrootes I could reproduce the original problem: when Reproducing this problem is not easy due to the random behavior of After applying the fixes by @vmgaribay here, the original problem was resolved. However, while fixing the problem, a new bug is introduced by hardcoding the threshold, see here. As a result, users can no longer modify the threshold or switch to a different Regarding |
hi @SarahAlidoost @vmgaribay, I believe a fix of this bug is simple, but would still be very interested if you managed to reproduce it @SarahAlidoost |
When I run the full step, the number of links created was not the same as the number successfully deleted. I had a similar issue in local_attachment_basic_homophily.py and it was due to me only checking for duplicate edge requests in one direction. I solved this by sorting the pairs and then taking the unique pairs. The two files do not share the same exact flow, but maybe it is a similar problem with either duplicate or self-edges.
We should probably check plain local_attachment, as well, if it is our intention to release it.
The text was updated successfully, but these errors were encountered: