Appendix C
The example gallery
Every method of the toolbox has at least one runnable example script. The scripts build their own problems and evaluators, run without a network connection (AI judges are replaced by the offline mock model), and explain the method in their comments. The same scripts produce the gallery of the online documentation, the Jupyter notebooks, and every computed figure and code listing of this book; the scripts of the last folder call Claude and need an API key. The tables below list them by folder of examples/, with the first figure of the book that each script produced.
C.1 First steps: sessions, protocols, spaces and logs
Folder examples/01_basics/. The methods are described in chapter 2.
|
Script |
Topic |
Figure |
|
plot_01_first_session.py |
A first interactive session: evolving a Julia set | |
|
plot_02_protocols.py |
Seven ways to answer: feedback protocols | |
|
plot_03_problem_zoo.py |
Search spaces and the problem zoo | |
|
plot_04_session_log.py |
Everything is logged: genealogy, lineage and the map of a session | |
|
plot_05_matlab_workflow.py |
From the MATLAB toolbox: the popu workflow |
— |
C.2 Interactive algorithms
Folder examples/02_algorithms/. The methods are described in chapter 3.
|
Script |
Topic |
Figure |
|
plot_01_easyiec_es.py |
The EASY-IEC algorithm: a self-adaptive evolution strategy driven by clicks | |
|
plot_02_cmaes_pso_de.py |
CMA-ES, interactive PSO and pairwise differential evolution | |
|
plot_03_bayesian.py |
Preferential Bayesian optimization, line search and gallery | |
|
plot_04_map_elites.py |
Interactive MAP-Elites: a diverse archive instead of one winner | |
|
plot_05_nsga2_reference.py |
Many objectives, one person: reference-point NSGA-II | |
|
plot_06_surrogate.py |
Fighting fatigue with a surrogate of the evaluator | |
|
plot_07_watchmaker_novelty.py |
The Blind Watchmaker and novelty-filtered galleries | |
C.3 Evaluators: simulated users, AI judges, panels and people
Folder examples/03_evaluators/. The methods are described in chapter 5.
|
Script |
Topic |
Figure |
|
plot_01_simulated_users.py |
Simulated users: benchmarking with a known ground truth | |
|
plot_02_llm_judge.py |
An AI judge in the loop: prompts, images and debiasing | |
|
plot_03_panels.py |
Panels: several evaluators, one decision | |
|
plot_04_escalation.py |
Hybrid evaluation: the AI answers, people decide the hard cases | |
|
plot_05_verbal_steering.py |
Verbal steering: "much brighter, slightly less saturated" | |
|
plot_06_preference_models.py |
Learning a utility from comparisons | |
C.4 Validation and benchmarking
Folder examples/04_validation/. The methods are described in chapter 6.
|
Script |
Topic |
Figure |
|
plot_01_judge_audit.py |
Auditing a judge before trusting it | |
|
plot_02_psychometric.py |
Psychometric audit: how small a difference can the judge see? | |
|
plot_03_alt_test_ppi.py |
May the AI replace the annotators? The alt-test and prediction-powered inference |
— |
|
plot_04_benchmark.py |
A factorial benchmark with simulated users | |
|
plot_05_compare_evaluators.py |
A judge-substitution study | |
|
plot_06_reports.py |
Reports, animations and the burden of a session | |
C.5 Engineering applications
Folder examples/05_engineering/. The methods are described in chapter 8.
|
Script |
Topic |
Figure |
|
plot_01_pid_tuning.py |
PID tuning by looking at step responses | |
|
plot_02_cstr_control.py |
Controlling an exothermic reactor at its unstable steady state | |
|
plot_03_beer_fermentation.py |
Designing a beer fermentation temperature profile | |
|
plot_04_fuzzy_and_paths.py |
Fuzzy partitions and robot paths: geometry an expert can judge | |
|
plot_05_segmentation.py |
Tuning an image-segmentation pipeline with a ground truth | |
C.6 Visual, creative and design applications
Folder examples/06_visual/. The methods are described in chapter 9.
|
Script |
Topic |
Figure |
|
plot_01_fractals.py |
Fractals: Julia sets, strange attractors, IFS and flames | |
|
plot_02_generative_art.py |
Generative art: CPPNs, harmonographs, superformula and cellular automata | |
|
plot_03_artificial_life.py |
Artificial life: biomorphs and L-system plants | |
|
plot_04_design.py |
Design: palettes, chart styles, faces and network drawings | |
|
plot_05_photo_enhancement.py |
Photo enhancement: grading an image by eye | |
|
plot_06_music_and_text.py |
Beyond images: melodies and slogans |
— |
C.7 Working with Claude (needs an API key)
Folder examples/07_claude/. The methods are described in chapter 11.
|
Script |
Topic |
Figure |
|
claude_01_judge_session.py |
Claude as the evaluator of a session |
— |
|
claude_02_validation_study.py |
Validating Claude as a judge |
— |
|
claude_03_hybrid_gallery.py |
You and Claude together in a notebook gallery |
— |