Safe Flexible-Extent ESMV¶
Solver ID: SAFE_FLEX_ESMV
Usage¶
from invert import Solver
# fwd = ... (mne.Forward object)
# evoked = ... (mne.Evoked object)
solver = Solver("SAFE_FLEX_ESMV")
solver.make_inverse_operator(fwd)
stc = solver.apply_inverse_operator(evoked)
stc.plot()
Overview¶
Flex-extent ESMV variant with a capped ('safe') adaptive contrast mechanism designed to avoid collapsing multi-source structure.
References¶
- Lukas Hecker (2025). Unpublished.
- Jonmohamadi, Y., Poudel, G., Innes, C., Weiss, D., Krueger, R., & Jones, R. (2014). Comparison of beamformers for EEG source signal reconstruction. Biomedical Signal Processing and Control, 14, 175-188.
API Reference¶
Bases: BaseSolver
FlexESMV6: FlexESMV2 + safe adaptive contrast.
Unlike FlexESMV5, this caps the contrast exponent per sample so that the K-th strongest peak (K estimated via MDL on sensor covariance) stays above the EMD support threshold. This aims to reduce dispersion without collapsing multi-source structure (which spikes EMD).
Source code in invert/solvers/beamformers/safe_flex_esmv.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
__init__ ¶
__init__(
name: str = "SafeFlexESMV (FlexESMV2+SafeContrast) Beamformer",
params: _SafeContrastParams | None = None,
reduce_rank: bool = True,
rank: str | int = "auto",
**kwargs,
)