calibrain.gamma_lambda_map_sflex#

calibrain.gamma_lambda_map_sflex(L, y, n_orient=1, init_gamma=None, init_lambda=None, learn_lambda=True, update_mode_noise=2, lambda_damping=1.0, max_iter=300, tol=1e-06, update_mode=2, track_history=True, sigma=0.01, threshold_factor=3.0, normalize='sym', eps=1e-12, verbose=False, logger=None, **kwargs)[source]#

Unified sFLEX + gamma-lambda MAP.

Source model#

x = (B ⊗ I_k) c

Supports#

n_orient = 1 : fixed n_orient = 2 : reduced free MEG n_orient = 3 : free EEG

rtype:

Dict[str, Any]

returns:
  • dict with posterior quantities in SOURCE space, plus coefficient-space

  • auxiliaries for debugging / analysis.