The book#

Cover of Discovering Equations from Data with Python

Discovering Equations from Data with Python: Symbolic regression, genetic programming and the eqdisco toolbox is the companion book of the package. It develops the methods in one notation, separates the theory of every method from its experiments, closes each method with a summary box, and illustrates it with the scripts of the example gallery, so the book, the documentation and the code report the same numbers. The book is published under the CC BY 4.0 license: read it online, or download the PDF or the EPUB edition.

Contents#

  1. Introduction: what an equation buys, the software landscape, notation, conventions of the package, a first session

  2. Expressions, search spaces and parameters: prefix representation, protected primitives, the parameter Jacobian, interval bounds, the size of the search space, complexity, information criteria, linear scaling, Levenberg–Marquardt estimation

  3. Genetic programming: initialization, variation, selection (tournament, lexicase, NSGA-II, age-fitness Pareto), bloat control, constants inside the search, islands, the archive and the choice of one model, library learning

  4. Linear-in-parameters models: orthogonal least squares and the error reduction ratio, multi-gene GP, GP-OLS, ERR-guided variation, cooperative OLS–GP

  5. Sparse regression and deterministic search: libraries, STLSQ, Lasso and best subset, fast function extraction, exhaustive search

  6. Probabilistic and language-guided search: the Bayesian machine scientist, grammar cross-entropy search, language models as proposers

  7. Dynamic systems: NARX identification, order selection, derivative estimation, SINDy and symbolic ODEs

  8. Beyond regression: symbolic classification with critical equations, goal-oriented projections

  9. Domain knowledge: physical units and dimensional analysis, shape constraints, separability and symmetries

  10. Analysis of discovered models: simplification, validation, uncertainty, sensitivity, building blocks and variable interactions, model families, bootstrap ensembles

  11. From discovery to deployment: export, registry, model cards and tracking, drift monitoring, benchmarks

  12. Synthesis: the families side by side, a decision guide, combining methods, lessons of the examples, open problems

Appendices: API reference, migration from the GP-OLS MATLAB toolbox, catalogue of the example scripts.