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_termsint, optional

Upper limit of the number of selected terms.

err_tolfloat

criterion="err": stop when the best remaining candidate adds less than err_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.

forcedlist of int, 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