Benchmarks#

Benchmarking of equation discovery methods.

run_benchmark() runs several estimators on several problems of eqdisco.datasets over repeated seeds and records accuracy (train and test \(R^2\)), complexity, run time, and whether the ground truth was recovered. Recovery follows the criterion of SRBench (La Cava et al., 2021): the found model is a symbolic solution if its difference from the true model is a constant or their ratio is a nonzero constant (is_symbolic_solution()).

Benchmark runner and the SRBench solution criterion.

Functions#

is_symbolic_solution(found, truth[, ...])

True if found - truth is constant or found / truth is a nonzero constant.

run_benchmark(estimators, problems[, ...])

Run {name: estimator} on the named problems with n_runs seeds each.

summarize(results)

Per method: median test \(R^2\), median size, solution rate and median time.