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

Exhaustive symbolic regression with description-length ranking.

Parameters:
functionssequence of str, default=(“add”, “sub”, “mul”, “div”, “exp”, “log”, “sqrt”, “square”)
max_sizeint, default=7

Largest number of nodes.

max_paramsint, default=3
criterion{“mdl”, “bic”, “aic”}

Ranking: the description length of eqdisco.fitness.description_length(), or an information criterion.

restartsint, default=1

Additional random starts of the parameter fit.

prune_nestingbool, default=True
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_list of Equation
n_candidates_int