eqdisco.ols.OLSResult#

class eqdisco.ols.OLSResult(err, coef, intercept, order, r2, history=<factory>, criterion=<factory>)[source]#

Bases: object

Result of ols_err() and forward_ols().

Attributes:
errndarray of shape (m,)

ERR of every regressor in the original column order (0 if not selected).

coefndarray of shape (m,)

Least-squares weights \(\mathbf{w}\) (0 if not selected).

interceptfloat

\(w_0\) (0 without intercept).

orderlist of int

Columns in the order in which they were orthogonalized (selected).

r2float

Sum of the ERR values (the \(R^2\) of the model when an intercept is used).

historylist of float

Cumulative ERR after each step (forward selection only).