eqdisco.models.ExhaustiveRegressor#
- class eqdisco.models.ExhaustiveRegressor(functions=('add', 'sub', 'mul', 'div', 'exp', 'log', 'sqrt', 'square'), max_size=7, max_params=3, criterion='mdl', restarts=1, prune_nesting=True, max_candidates=200000, random_state=None, feature_names=None)[source]#
Bases:
BaseEstimator,RegressorMixinExhaustive symbolic regression with description-length ranking.
- Parameters:
- functionssequence
ofstr, default=(“add”, “sub”, “mul”, “div”, “exp”, “log”, “sqrt”, “square”) - max_size
int, default=7 Largest number of nodes.
- max_params
int, default=3 - criterion{“mdl”, “bic”, “aic”}
Ranking: the description length of
eqdisco.fitness.description_length(), or an information criterion.- restarts
int, default=1 Additional random starts of the parameter fit.
- prune_nestingbool, default=True
- functionssequence
- Attributes:
- results_
pandas.DataFrame Every distinct function with its size, parameters, MSE, BIC and description length, ranked by
criterion.- equation_
Equation The best function by
criterion.- pareto_front_
listofEquation - n_candidates_
int
- results_