eqdisco.models.SparseRegressor#
- class eqdisco.models.SparseRegressor(library=None, degree=2, functions=(), interactions=True, method='stlsq', threshold=0.05, ridge=0.0, max_terms=None, criterion='bic', err_tol=0.0001, feature_names=None)[source]#
Bases:
BaseEstimator,RegressorMixinSparse regression over a library of candidate terms.
- Parameters:
- library
listofExpressionorstr,optional Candidate terms; by default
make_library()withdegreeandfunctions.- degree
int, default=2 - functionssequence
ofstr, default=() - interactionsbool, default=True
- method{“stlsq”, “lasso”, “frols”, “best_subset”}
stlsq– thresholded least squares withthreshold;lasso–sklearn.linear_model.LassoCVand refit of the support;frols– forward orthogonal least squares, stopped bycriterion;best_subset– all subsets of up tomax_termsterms, minimum BIC.
- threshold
float, default=0.05 - ridge
float, default=0.0 - max_terms
int,optional - criterion{“bic”, “aic”, “err”}, default=”bic”
Stopping rule of
frols.
- library
- Attributes: