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

Open
wants to merge 49 commits into
base: master
Choose a base branch
from

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 9 commits October 28, 2024 14:15
trust-region very slow for MEG
* pre-compute some matrix

* Improve call to be_dwsynthesis

* clean code

* Add option 7 for alpha
* 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
best/mem/be_launch_mem.m Outdated Show resolved Hide resolved
best/mem/be_launch_mem.m Outdated Show resolved Hide resolved
best/mem/be_minimize_free_energy.m Outdated Show resolved Hide resolved
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