eqdisco.models.FFXRegressor#
- class eqdisco.models.FFXRegressor(interactions=True, n_knots=3, operators=('abs', 'log', 'sqrt'), l1_ratio=0.95, n_alphas=100, max_bases=12, model_selection='bic', selection_tolerance=0.01, feature_names=None)[source]#
Bases:
BaseEstimator,RegressorMixinFast Function Extraction (FFX; McConaghy, 2011).
Bases: \(x_j\), \(x_j^2\), \(\sqrt{|x_j|}\), \(|x_j|\), \(\ln|x_j|\), hinge functions at quantile knots and (optionally) the pairwise products of the univariate bases. The elastic-net regularization path (
sklearn.linear_model.enet_path(),l1_ratio0.95 as in FFX) produces models of growing size; the support of every point of the path is refitted by least squares and the non-dominated models (number of bases vs NMSE) formpareto_front_.- Parameters:
- interactionsbool, default=True
- n_knots
int, default=3 Knots per variable for the hinge bases (0: none).
- operatorssequence
ofstr, default=(“abs”, “log”, “sqrt”) - l1_ratio
float, default=0.95 - n_alphas
int, default=100 - max_bases
int, default=12 Path points with more bases are ignored.
- model_selection
str, default=”bic” Rule of
eqdisco.analysis.pareto.select_model().
- Attributes: