pyeeg.solvers.ScipyRobustSolver.solve
- ScipyRobustSolver.solve(X, y, alpha=0.0, M=None)
Fit the robust Cauchy-loss regression and return coefficients.
Fits each output channel with
scipy.optimize.least_squaresusing the'cauchy'loss. Only unregularized regression is supported:alphaandMare accepted for API compatibility but ignored.- 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) or list of arrays (one per segment).
alpha (float or array-like, optional) – Accepted for API compatibility; not used by this solver. Default is 0.0.
M (ndarray, optional) – Accepted for API compatibility; not used by this solver. Default is None.
- Returns:
result –
betashas shape (n_features, n_channels).infois a dict with keysn_iter(max nfev across channels),converged(True if all channels succeeded),scale(array of per-channel scales), andresults(list ofscipy.optimize.OptimizeResultobjects).- Return type: