Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] improve MEM performance #25

Merged
merged 62 commits into from
Mar 12, 2025

Conversation

Edouard2laire
Copy link
Collaborator

@Edouard2laire Edouard2laire commented Oct 2, 2024

This PR:

  • Update the definition of the covariance matrix along the cortical surface
  • Improve the performance
  • improve memory usage when using parallel computing.
  • Improve the disk usage of the output

Reference:

Edouard2laire and others added 28 commits October 2, 2024 18:10
* don't display progress bar for standalone

* First implementation

* clean code

* aestetic changes

* more aesthetic change

* add spaces
* Improve parameter choice for l-curve

* Improve kernel estimation using SVD trick to compute the norm
* Improve parameter choice for l-curve

* Improve kernel estimation using SVD trick to compute the norm

* better handle figures

* Remove be_main_wmem
Optimize be_free_energy and be_mem_struct
Save wMEM results as factor decomposition
* Attempt to fix the covariance matrix

* refactor changes

* remove previous trick to be safer
* attempt to use hessian to speed up calculation

* use hessian

* Remove Hessian for now
@Edouard2laire Edouard2laire marked this pull request as ready for review October 23, 2024 18:58
Edouard2laire and others added 2 commits November 1, 2024 17:57
* more refactor on memstruct

* more refactor

* more refactor

* Fix memory issue for EEG/MEG

* temporary move new implementation to be_free_energy2

* start support for custom mean / inactive variance

* add unsaved change

* remove unnecessary sum

* minor cosmetic change

* bug fix and clean code
@Edouard2laire Edouard2laire changed the title [wMEM] improve performance for fNIRS data [ENH] improve MEM performance Nov 26, 2024
@Edouard2laire Edouard2laire merged commit 9fc7629 into multifunkim:master Mar 12, 2025
@Edouard2laire Edouard2laire deleted the wMEM-nirs2 branch March 12, 2025 19:08
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.

1 participant