Skip to content

Commit

Permalink
Fix: Noise-noise connections should not count as true edges (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret authored Oct 2, 2023
1 parent 7ed880c commit 2924c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gnn_tracking/models/graph_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def forward(self, data: Data) -> Data:
)
y: T = ( # type: ignore
data.particle_id[edge_index[0]] == data.particle_id[edge_index[1]]
)
) & (data.particle_id[edge_index[0]] > 0)
if not self._ml or not self.hparams.use_embedding_features:
x = data.x
else:
Expand Down

0 comments on commit 2924c13

Please sign in to comment.