Estimators#

Equation discovery methods (scikit-learn compatible estimators).

Estimator

Method

SymbolicRegressor

tree-based genetic programming (Koza, 1992) with linear scaling, parameter optimization, five selection schemes, islands

SymbolicClassifier

symbolic decision functions; critical equations (Kummer et al., 2019)

MultiGeneRegressor

multi-gene GP with least-squares weights (Searson et al., 2010)

GPOLSRegressor

GP-OLS: OLS/ERR pruning of terms (Madár, Abonyi and Szeifert, 2005)

CooperativeOLSRegressor

cooperative GP with OLS credit assignment (new in eqdisco)

SymbolicTransformer

goal-oriented symbolic features (Dörgő, Kulcsár and Abonyi, 2021)

SparseRegressor

STLSQ, Lasso, FROLS, best subset over a term library

FFXRegressor

Fast Function Extraction (McConaghy, 2011)

ExhaustiveRegressor

exhaustive enumeration with description length (Bartlett et al., 2024)

BayesianSymbolicRegressor

MCMC over expressions with parallel tempering (after Guimerà et al., 2020)

GrammarCERegressor

risk-seeking cross-entropy over a probabilistic grammar (new in eqdisco)

LLMGuidedRegressor

proposals of a language model or templates with constant fitting

SymbolicEnsemble

bootstrap ensembles of any of the above

All search methods with the scikit-learn API.

Classes#

SymbolicRegressor([population_size, ...])

Genetic programming for symbolic regression.

SymbolicClassifier([population_size, ...])

Genetic programming for classification by a symbolic decision function.

MultiGeneRegressor([population_size, ...])

Multi-gene genetic programming (MGGP) for symbolic regression.

GPOLSRegressor([population_size, ...])

GP-OLS: genetic programming with orthogonal-least-squares pruning (Madár et al., 2005).

SymbolicTransformer([n_components, goal, ...])

Evolve \(k\) explicit features \(z_j=F_j(\mathbf{x})\) for a goal.

Genes(genes)

An immutable list of gene trees (a multi-gene individual).

CooperativeOLSRegressor([population_size, ...])

Cooperative GP whose population is a library of terms selected by OLS (new in eqdisco).

SparseRegressor([library, degree, ...])

Sparse regression over a library of candidate terms.

FFXRegressor([interactions, n_knots, ...])

Fast Function Extraction (FFX; McConaghy, 2011).

ExhaustiveRegressor([functions, max_size, ...])

Exhaustive symbolic regression with description-length ranking.

BayesianSymbolicRegressor([functions, ...])

Posterior sampling of model structures by Metropolis moves with parallel tempering.

GrammarCERegressor([functions, ...])

Risk-seeking cross-entropy search over a probabilistic expression grammar.

LLMGuidedRegressor([proposer, n_iterations, ...])

Iterative equation discovery with a proposer (LLM or templates) and constant fitting.

SymbolicEnsemble([estimator, n_estimators, ...])

Bootstrap ensemble of any eqdisco regressor.

Functions#

logistic_scaling(f, t[, sample_weight, n_iter])

Intercept and slope of \(P(t=1)=\sigma(a+bf)\) by Newton--Raphson (1-D logistic regression).

split_terms(expr)

Split an expression at its top-level add/sub/neg nodes.

polynomial_library(n_features[, degree, ...])

All monomials of total degree 1..``degree`` (without the constant).

function_library(n_features[, functions, ...])

Unary functions applied to every variable: \(g(x_j)\).

hinge_library(X[, n_knots, feature_names])

Hinge functions \(\max(0, x_j-t)\) and \(\max(0, t-x_j)\) at quantile knots.

make_library(n_features[, degree, ...])

Polynomial terms, unary functions of the variables and (optionally) hinges.

library_matrix(terms, X)

Regressor matrix \(\Theta(\mathbf{X})\): one column per term.

stlsq(Theta, y[, threshold, ridge, ...])

Sequentially thresholded least squares (Brunton, Proctor and Kutz, 2016).

enumerate_expressions(pset, max_size[, ...])

All canonical expressions with at most max_size nodes.