Closed zmkzmkzmkzmkzmk closed 2 months ago
This looks like a rather covert but important bug, and if someone might find and report it earlier, we would definitely going to investigate it. However, we are going to release a new version of MAGIC in this month (or probably next month), which focus on entity-level detection task, and is more stable, bug-free and easier to reproduce. In this case, we are not going to fix this particular bug you found.
When I was debugging the code I found that x_init was not equal to the node's original one-hot encoding:
![image](https://github.com/FDUDSDE/MAGIC/assets/148463061/6c0e47cb-a83a-4c17-8ed1-64ceb115340c)
I think the problem may occur in self.encoding_mask_noise(g, self._mask_rate), because after executing the code self.encoding_mask_noise(g, self._mask_rate), the value of g.ndata['attr'][mask_nodes] will be changes happened. Will this problem affect the calculation of loss = self.criterion(x_rec, x_init)