pyeeg.solvers.LSTSQSolver
- class pyeeg.solvers.LSTSQSolver(verbose=False)
Linear regression using least squares (
numpy.linalg.lstsq).Accumulates the normal equations
XᵀXandXᵀy(across segments / epochs when needed) and solves them withnumpy.linalg.lstsq. No regularization is applied;alphaandMare accepted for API compatibility withSolverbut 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.