Closed jnpark3 closed 1 year ago
Patch coverage: 28.94%
and project coverage change: +2.89%
:tada:
Comparison is base (
fb2c5ff
) 71.56% compared to head (f7a23ab
) 74.46%. Report is 46 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
pre-commit.ci autofix
Pull request in resolving issue #293.
Background loss calculation was updated to require less memory usage while computing the indices of alpha particles. Potential loss calculation was updated by adding the '_fast_condensation_loss' function, which uses the updated alpha index search methods and radius graphs to significantly decrease the memory usage of computing condensation loss. This function uses an approximate method to calculate repulsive loss, as torch_cluster's 'radius_graph' requires an upper limit 'max_neighbors' to the number of edges constructed originating from each point. This limitation should not significantly change the characteristic of the loss function for sufficiently large values of 'max_neighbors'. When 'max_neighbors' is set to <=0 while setting up 'PotentialLoss' object, the original condensation loss function is used.
Comments added to explain in detail the workings of this function.