Implementing the G2G model in dataset USPTO-50k you have functions _get_difference and _get_reaction_center and in the second one, you define edge_labels which you use for the training center identification part in retrosynthesis. The problem is that in the first one the graph is converted to a directed one so each edge counts once, however, in the second function it's not, and as a result, the second function assigns 1 to edge [a,b] if it was added but doesn't add 1 to the edge [b, a]. Let me know if I misunderstood smth. If I'm correct I would suggest adding to the second function this piece of code when defining edge_label
Implementing the G2G model in dataset USPTO-50k you have functions _get_difference and _get_reaction_center and in the second one, you define edge_labels which you use for the training center identification part in retrosynthesis. The problem is that in the first one the graph is converted to a directed one so each edge counts once, however, in the second function it's not, and as a result, the second function assigns 1 to edge [a,b] if it was added but doesn't add 1 to the edge [b, a]. Let me know if I misunderstood smth. If I'm correct I would suggest adding to the second function this piece of code when defining edge_label