eqdisco.ols.ols_err#
- eqdisco.ols.ols_err(Phi, y, order=None, intercept=True, tol=1e-10)[source]#
ERR of every regressor, orthogonalized in a given order (modified Gram–Schmidt).
- Parameters:
- Phiarray_like
ofshape(N,m) Regressor matrix.
- yarray_like
ofshape(N,) - ordersequence
ofint,optional Order of orthogonalization (default: column order). The ERR of a term depends on the order: it measures what the term adds to the terms before it.
- interceptbool
Center
yand the regressors (the ERR values then sum to \(R^2\)).- tol
float Columns whose orthogonal part has relative energy below
tolare treated as linearly dependent (ERR and weight 0).
- Phiarray_like
Examples using eqdisco.ols.ols_err#
Orthogonal least squares and the error reduction ratio
Orthogonal least squares and the error reduction ratio