eqdisco.ols.OLSResult#
- class eqdisco.ols.OLSResult(err, coef, intercept, order, r2, history=<factory>, criterion=<factory>)[source]#
Bases:
objectResult of
ols_err()andforward_ols().- Attributes:
- err
ndarrayofshape(m,) ERR of every regressor in the original column order (0 if not selected).
- coef
ndarrayofshape(m,) Least-squares weights \(\mathbf{w}\) (0 if not selected).
- intercept
float \(w_0\) (0 without intercept).
- order
listofint Columns in the order in which they were orthogonalized (selected).
- r2
float Sum of the ERR values (the \(R^2\) of the model when an intercept is used).
- history
listoffloat Cumulative ERR after each step (forward selection only).
- err