eqdisco.ols.forward_ols#
- eqdisco.ols.forward_ols(Phi, y, max_terms=None, err_tol=0.0001, criterion='err', intercept=True, forced=None, tol=1e-10)[source]#
Forward regression with orthogonal least squares (FROLS).
At every step the candidate whose orthogonal part explains the largest share of the remaining output energy (largest ERR) is added.
- Parameters:
- Phi, yarray_like
- max_terms
int,optional Upper limit of the number of selected terms.
- err_tol
float criterion="err": stop when the best remaining candidate adds less thanerr_tol(ERR is a share of the output energy).- criterion{“err”, “bic”, “aic”}
Stopping rule: the ERR threshold, or the minimum of the Bayesian/Akaike information criterion along the selection path.
- forced
listofint,optional Columns that enter first, in this order.
Examples using eqdisco.ols.forward_ols#
Orthogonal least squares and the error reduction ratio
Orthogonal least squares and the error reduction ratio