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, RegressorMixin

Fast 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_ratio 0.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) form pareto_front_.

Parameters:
interactionsbool, default=True
n_knotsint, default=3

Knots per variable for the hinge bases (0: none).

operatorssequence of str, default=(“abs”, “log”, “sqrt”)
l1_ratiofloat, default=0.95
n_alphasint, default=100
max_basesint, default=12

Path points with more bases are ignored.

model_selectionstr, default=”bic”

Rule of eqdisco.analysis.pareto.select_model().

Attributes:
equation_Equation
pareto_front_list of Equation
bases_list of Expression