pyeeg.solvers.LSTSQSolver

class pyeeg.solvers.LSTSQSolver(verbose=False)

Linear regression using least squares (numpy.linalg.lstsq).

Accumulates the normal equations XᵀX and Xᵀy (across segments / epochs when needed) and solves them with numpy.linalg.lstsq. No regularization is applied; alpha and M are accepted for API compatibility with Solver but do not modify the solution.

Notes

A warning is shown in the case where n_features > n_samples; if so the user should rather use partial regression.

Methods

LSTSQSolver.solve(X, y[, alpha, M])

Solve the least-squares regression and return the coefficients.