pyeeg.solvers.Solver.solve
- abstractmethod Solver.solve(X, y, alpha=0.0, M=None)
Solve the regression problem and return the coefficients.
- Parameters:
X (ndarray or list of ndarray) – Design matrix (n_samples, n_features) or list of segments.
y (ndarray or list of ndarray) – Target (n_samples, n_channels), (n_samples, n_channels, n_epochs), or list of arrays (one per segment).
alpha (float or array-like, optional) – Regularization strength(s). When
Mis provided,alphais ignored in the solve (it only controls the output axis size for API compatibility). Default is 0.0.M (ndarray or None, optional) – Quadratic regularization matrix. If provided, replaces L2 (
alpha) regularization. Default is None.
- Returns:
result – Contains
betas(ndarray of estimated coefficients) andinfo(dict or None).- Return type: