Data sets#

Benchmark problems, dynamic systems and everyday data for equation discovery.

Ground-truth benchmark functions from the genetic-programming literature (the formulas as listed by McDermott et al., 2012; the sampling of eqdisco is uniform on the stated ranges and seeded, so that every problem is reproducible):

  • Nguyen-1..12 (Uy et al., 2011), Koza-1 (Koza, 1992), Koza-2, 3 (Koza, 1994), Keijzer-4, 11..15 (Keijzer, 2003), Vladislavleva-1, 4, 6, 7, 8 (Vladislavleva, Smits and den Hertog, 2009), Pagie-1 (Pagie and Hogeweg, 1997), Friedman-1..3 (Friedman, 1991, via scikit-learn);

  • a subset of physics equations of the Feynman lectures with units, as used by AI Feynman (Udrescu and Tegmark, 2020) – sampled on \([1, 5]\) unless noted.

Data with a known law: the orbital periods of the planets (Kepler’s third law) and the Semenov criterion of thermal runaway for symbolic classification.

Dynamic systems: Lorenz, van der Pol, Lotka–Volterra, Duffing and pendulum ODEs; the NARX benchmark of Narendra and Parthasarathy (1990).

Benchmark problems, Feynman equations, Kepler, thermal runaway and dynamical systems.

Classes#

Problem(name, X_train, y_train, X_test, ...)

A benchmark problem with training and test data and its ground truth.

Functions#

get_problem(name[, noise, random_state, n_train])

A benchmark problem by name.

list_problems([kind])

Names of the problems; kind filters by prefix ("nguyen", "feynman", ...).

load_kepler()

Semi-major axis (AU) and sidereal orbital period (years) of the eight planets.

make_runaway([n, random_state, label_noise])

Synthetic thermal-runaway data labeled by the Semenov criterion.

make_regression_problem(formula, feature_names)

A problem from any formula (string over feature_names), sampled uniformly.

lorenz([T, dt, sigma, rho, beta, z0, noise, ...])

Lorenz system \(\dot x=\sigma(y-x),\ \dot y=x(\rho-z)-y,\ \dot z=xy-\beta z\).

van_der_pol([T, dt, mu, z0, noise, random_state])

Van der Pol oscillator \(\dot x=y,\ \dot y=\mu(1-x^2)y-x\).

lotka_volterra([T, dt, a, b, c, d, z0, ...])

Predator--prey model \(\dot x=ax-bxy,\ \dot y=dxy-cy\).

duffing([T, dt, delta, alpha, beta, z0, ...])

Unforced Duffing oscillator \(\dot x=y,\ \dot y=-\delta y-\alpha x-\beta x^3\).

pendulum([T, dt, g_over_l, damping, z0, ...])

Damped pendulum \(\dot\varphi=\omega,\ \dot\omega=-(g/l)\sin\varphi-c\,\omega\).

narendra_parthasarathy([T, random_state, ...])

NARX benchmark \(y(k+1)=\dfrac{y(k)}{1+y(k)^2}+u(k)^3\) (Narendra and Parthasarathy, 1990).

Constants#

PROBLEMS

Names accepted by get_problem().

FEYNMAN