Skip to content

Conversation

@alpinho
Copy link
Contributor

@alpinho alpinho commented Dec 14, 2024

The computation of the euclidean distance can be very memory intensive if a and b are large. This is because the matrix dist has a shape of (N,N), where N is the number of samples (e.g., cortical nodes), and its size grows quadratically with N. In long analysis pipelines, the system can run in insufficient memory, killing the process. Here, there's an updated version of the euclidean_distance function that delivers identical results compared with the original one.

@alpinho alpinho requested a review from jdiedrichsen December 14, 2024 20:51
@alpinho
Copy link
Contributor Author

alpinho commented Jan 20, 2025

I made also a similar improvement in compute_var_cov_pt function inside compute_DCBC_pt.

@alpinho alpinho requested a review from dzhi1993 January 20, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants