Appendix C
The example gallery
Every method of the toolbox has at least one runnable example script. The scripts generate or load their own data, explain the method in their comments, and end with a study of the main parameters. The same scripts produce the gallery of the online documentation, the Jupyter notebooks, and every computed figure and code listing of this book. The tables below list them by folder of examples/, with the first figure of the book that each script produced.
C.1 First steps: expressions, search spaces, scaling
Folder examples/01_basics/. The methods are described in chapter 2.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_expressions.py |
Expressions: trees, evaluation, derivatives and bounds | |
|
plot_02_kepler.py |
A first search: Kepler’s third law from the planets | |
|
plot_03_search_space.py |
The size of the search space and the meaning of complexity | |
|
plot_04_linear_scaling.py |
Linear scaling: let regression handle offset and scale | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.2 Genetic programming
Folder examples/02_gp/. The methods are described in chapter 3.
|
Script |
Topic |
Figure |
|
|
||
|
plot_05_selection_schemes.py |
Five selection schemes on one problem | |
|
plot_06_bloat_control.py |
Bloat and its control | |
|
plot_07_parameter_optimization.py |
Parameter optimization inside the search | |
|
plot_08_pareto_selection.py |
The Pareto front and the choice of one model | |
|
plot_09_diversity.py |
Diversity: semantic crossover and islands | |
|
plot_10_library_learning.py |
Library learning: reusing building blocks (new in eqdisco) | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.3 Linear-in-parameters models, OLS and GP-OLS
Folder examples/03_gpols/. The methods are described in chapter 4.
|
Script |
Topic |
Figure |
|
|
||
|
plot_11_ols_err.py |
Orthogonal least squares and the error reduction ratio | |
|
plot_12_mggp.py |
Multi-gene genetic programming | |
|
plot_13_gpols.py |
GP-OLS: pruning terms by their error reduction ratio | |
|
plot_14_err_guided.py |
ERR-guided variation: an experimental operator (new in eqdisco) | |
|
plot_15_cooperative.py |
Cooperative GP with OLS credit assignment (new in eqdisco) | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.4 Sparse regression and deterministic search
Folder examples/04_sparse/. The methods are described in chapter 5.
|
Script |
Topic |
Figure |
|
|
||
|
plot_16_sparse_library.py |
Sparse regression over a library of terms | |
|
plot_17_ffx.py |
Fast Function Extraction (FFX) | |
|
plot_18_exhaustive.py |
Exhaustive search with a description length | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.5 Probabilistic and language-guided search
Folder examples/05_probabilistic/. The methods are described in chapter 6.
|
Script |
Topic |
Figure |
|
|
||
|
plot_19_bayesian.py |
Bayesian sampling of model structures | |
|
plot_20_grammar_ce.py |
Learning a grammar of good expressions (new in eqdisco) | |
|
plot_21_llm_proposals.py |
Language models as proposal generators | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.6 Dynamic systems
Folder examples/06_dynamics/. The methods are described in chapter 7.
|
Script |
Topic |
Figure |
|
|
||
|
plot_22_narx_gpols.py |
Nonlinear input–output identification with GP-OLS | |
|
plot_23_order_selection.py |
Model order selection for NARX models | |
|
plot_24_sindy_lorenz.py |
Sparse identification of the Lorenz system | |
|
plot_25_symbolic_ode.py |
Differential equations by genetic programming | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.7 Beyond regression: classifiers and projections
Folder examples/07_beyond/. The methods are described in chapter 8.
|
Script |
Topic |
Figure |
|
|
||
|
plot_26_runaway_classifier.py |
A critical equation for reactor runaway | |
|
plot_27_goal_oriented_projection.py |
Goal-oriented projection with symbolic features | |
|
plot_28_soft_sensor_projection.py |
Symbolic features for a soft sensor | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.8 Domain knowledge
Folder examples/08_knowledge/. The methods are described in chapter 9.
|
Script |
Topic |
Figure |
|
|
||
|
plot_29_units.py |
Physical units: dimensional consistency and Buckingham groups | |
|
plot_30_shape_constraints.py |
Shape constraints for safe extrapolation | |
|
plot_31_symmetry.py |
Separability and symmetries detected from data | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.9 Analysis of discovered models
Folder examples/09_analysis/. The methods are described in chapter 10.
|
Script |
Topic |
Figure |
|
|
||
|
plot_32_simplification.py |
Simplification of evolved models | |
|
plot_33_validation_uncertainty.py |
Validation and uncertainty of a discovered law | |
|
plot_34_sensitivity.py |
Sensitivity analysis of a discovered model | |
|
plot_35_building_blocks.py |
Building blocks and variable interactions | |
|
plot_36_model_families.py |
Model families: how many different models do the data support? (new in eqdisco) | |
|
plot_37_ensemble.py |
Bootstrap ensembles: model uncertainty and stable structure | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.10 From discovery to deployment
Folder examples/10_mlops/. The methods are described in chapter 11.
|
Script |
Topic |
Figure |
|
|
||
|
plot_38_export.py |
Exporting equations to code, spreadsheets and PMML | |
|
plot_39_registry_monitoring.py |
Registry, model card and drift monitoring | |
|
plot_40_benchmark.py |
A small benchmark of methods | |
|
plot_41_dashboard.py |
A one-page report of a search | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||