Feat: Integrate Real Subject Leadfields#9
Merged
Merged
Conversation
- Visualize leadfield matrix. - Updated the experiment configuration in `run_experiments.py` to change parameters for subject and noise levels, and adjusted leadfield loading paths. - Ensured that leadfield matrices are handled correctly for EEG channels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4
This pull request addresses issue #4 by integrating the the use of leadfields generated from real individual subject anatomical data, beyond the reliance on the
fsaveragetemplate.Key Changes Implemented:
DataSimulatorandBenchmarkclasses to dynamically load and utilize leadfield matrices corresponding to individual subjects.subjectparameter in thedata_param_grid(as seen inexamples/run_experiments.py). The benchmarking loop now iterates over a list of specified subject IDs (e.g.,["subject_01", "subject_02", "fsaverage"]), loading the appropriate leadfield for each.fsaverageleadfield.How to Use:
data_param_gridin experiment scripts to include thesubjectparameter with a list of desired subject IDs (includingfsaverageif comparison is needed).Affected Files:
calibrain/data_simulation.pycalibrain/benchmark.pyexamples/run_experiments.py