easyiec: interactive evolutionary computation with human, simulated and AI evaluators
easyiec optimizes things whose quality is judged rather than computed — a controller response, a fermentation profile, a photo grading, a fractal, a colour palette, a melody, a slogan. In interactive evolutionary computation (IEC) the fitness function of an evolutionary algorithm is replaced by an evaluator who looks at the candidates and chooses (Takagi, 2001). The package is the Python successor of the EASY-IEC MATLAB toolbox (Madár, Abonyi and Szeifert, Comput. Chem. Eng. 29(7), 2005), extended in three directions:
- Algorithms — interactive GA, self-adaptive ES (the EASY-IEC algorithm), CMA-ES, interactive PSO (Madár et al., 2005), pairwise differential evolution, the Blind Watchmaker, interactive MAP-Elites, novelty-filtered IEC, reference-point NSGA-II, preferential Bayesian optimization, sequential line search and sequential gallery, surrogate-assisted fatigue reduction, verbal steering with fuzzy linguistic hedges and Lamarckian direct manipulation.
- Evaluators — people (Jupyter/Colab gallery, desktop matplotlib gallery, console), simulated users with known ground truth (Thurstone/BTL noise, fatigue, lapses, position bias, drift), metric evaluators, LLM and VLM judges (Claude, OpenAI-compatible, Gemini, Ollama; offline mock), persona panels and hybrid evaluation that escalates uncertain queries to a person under a calibrated risk-control policy.
- Evaluation science — agreement statistics, judge diagnostics (swap test, transitivity, self-consistency, calibration), psychometric audits of AI judges, the alternative annotator test, prediction-powered inference, factorial benchmarks with simulated users, statistical comparison and some twenty visualizations of IEC processes, plus HTML session reports.
| Module | Contents |
|---|---|
easyiec.core |
Box search spaces, Individual, Query/Feedback with seven protocols (select, rank, rate, pairs, best–worst, line, edit), Problem, Session with budgets, oracles and complete logs |
easyiec.strategies |
InteractiveGA, InteractiveES, EasyIEC, Watchmaker, InteractiveCMAES, InteractivePSO, InteractiveDE, InteractiveMAPElites, NoveltyIEC, InteractiveNSGA2, PreferentialBO, SequentialLineSearch, SequentialGallery, SurrogateAssisted, RandomSearch |
easyiec.preference |
Bradley–Terry (linear, random-feature), GP preference learning (Laplace), Borda, Copeland, Kemeny, Elo, cyclic triads |
easyiec.evaluators |
SimulatedUser, MetricEvaluator, LLMJudge, Panel, PersonaPanel, EscalationEvaluator, HumanProxy, ConsoleEvaluator, VerbalSteering, API clients with disk cache |
easyiec.problems |
25 problems: PID and CSTR (PID/DMC) tuning, beer fermentation, fuzzy partitions, path planning, photo enhancement, segmentation with ground truth, Julia sets, attractors, IFS, fractal flames, CPPN images, harmonographs, biomorphs, L-systems, cellular automata, superformula logos, palettes, chart styles, Chernoff faces, network drawings, melodies, slogans, synthetic landscapes |
easyiec.validation |
Kendall, Spearman, RBO, Cohen/Fleiss κ, Krippendorff α, Kendall W, ICC; position consistency and bias, self-consistency, transitivity, psychometric audit, calibration; alt-test, PPI; curves, burden, diversity; bootstrap, A12, Holm, Friedman–Nemenyi; run_benchmark, compare_evaluators |
easyiec.viz |
galleries, film strips, genealogies, lineages, PCA/MDS/t-SNE maps, anytime curves, gene trajectories, preference landscapes, Pareto fronts, strategy states, agreement heatmaps, psychometric curves, position bias, escalation timelines, calibration, critical-difference diagrams, GIF animations, HTML reports |
easyiec.ui |
JupyterGallery (ipywidgets, AI prefill, gene editor), MatplotlibGallery (EASY-IEC-style figure, draggable knots) |
easyiec.compat |
the MATLAB workflow: popu_init, user functions, ies_main |
Installation
pip install easyiec
pip install "easyiec[all]" # + ipywidgets, scikit-learn, scikit-image
Python ≥ 3.10; depends on numpy, scipy, matplotlib, pandas, networkx and Pillow. The LLM clients use only the standard library.
Quick start
import easyiec as ei
from easyiec.problems import JuliaSet, BeerFermentation
from easyiec.strategies import InteractiveGA, InteractiveCMAES
# 1) you are the evaluator (Jupyter, JupyterLab, VS Code, Colab)
ei.ui.JupyterGallery(JuliaSet(), InteractiveGA(pop_size=9))
# 2) a simulated user with a hidden target: reproducible benchmarks with ground truth
p = BeerFermentation()
user = ei.SimulatedUser(p, target="default", noise=0.05, fatigue=0.5, seed=1)
res = ei.run(p, InteractiveCMAES(), user, generations=20, seed=1)
print(res.best_true, p.describe(res.best.genome))
# 3) an LLM/VLM judge (Claude), debiased by presentation-order swaps
from easyiec.evaluators import AnthropicClient, LLMJudge
judge = LLMJudge(AnthropicClient("claude-sonnet-5-5"), JuliaSet(),
goal="an intricate, glowing spiral in cool colours")
res = ei.run(JuliaSet(), InteractiveGA(), judge, generations=10)
# 4) the AI answers, people are asked only when the AI is unsure
from easyiec.evaluators import EscalationEvaluator, HumanProxy
hybrid = EscalationEvaluator(judge, HumanProxy(), policy="rate", target_rate=0.25)
# policy="risk" with calibration labels keeps the AI-only disagreement below a tolerance
ei.ui.JupyterGallery(JuliaSet(), InteractiveGA(), evaluator=hybrid)
Validate a judge before trusting it:
from easyiec.validation import audit_judge, psychometric_audit
audit = audit_judge(judge, JuliaSet(), goal="Choose the more beautiful fractal.")
psy = psychometric_audit(judge, JuliaSet(), "brightness", goal="Choose the brighter image.")
ei.viz.plot_psychometric(psy)
Documentation and book
- Documentation, example gallery and API reference: https://complexsystemsintelligence.github.io/easyiec
- The companion book, Interactive Evolutionary Computation in Python: Human, Simulated and AI Evaluators — The easyiec toolbox (CC BY 4.0): PDF, web edition
Citing
If you use easyiec, please cite the software (see CITATION.cff) and the
original publications of the methods you use; the EASY-IEC method itself:
Madár, J., Abonyi, J., Szeifert, F. (2005). Interactive evolutionary computation in process engineering. Computers & Chemical Engineering, 29(7), 1591–1597. https://doi.org/10.1016/j.compchemeng.2004.12.009
Acknowledgement
The development was supported by the National Research, Development and Innovation Office of Hungary (NKFIH, OTKA 143482).
License
MIT (software); the book is CC BY 4.0.
Metadata
Release files for easyiec 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easyiec-1.0.tar.gz | 202.8 kB | With provenance | Details for easyiec-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easyiec-1.0-py3-none-any.whl | Python 3 | none | any | Details for easyiec-1.0-py3-none-any.whl |
Total release size: 398.8 kB
Release files / easyiec-1.0.tar.gz
| Download URL | easyiec-1.0.tar.gz |
|---|---|
| Size | 202.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01efb620429557e735f3932f2fcfda2d209f4ec84e2d5d10de3c22809ffe6feb
|
|
BLAKE2b-256 checksum How to use checksums |
610d3cbbf731f7807095cf88748bf72575824ab8ac56aedd02694511ad04ae2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / easyiec-1.0-py3-none-any.whl
| Download URL | easyiec-1.0-py3-none-any.whl |
|---|---|
| Size | 196.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
019444e62b277ce4e6cda3f4516e03c5e5d9fe6a87560d746f60db6f3bb33957
|
|
BLAKE2b-256 checksum How to use checksums |
77fcfc262e1d77a9bf4db0a67a1370c098107729a04274397cce35e85d09deba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for easyiec 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for easyiec-1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.