easyiec.strategies.InteractiveGA#
- class easyiec.strategies.InteractiveGA(pop_size=9, protocol=None, n_select=None, crossover='blx', crossover_rate=0.7, sigma=0.08, mutation_rate=None, elite=1, immigrants=0.0, sigma_decay=0.97, sigma_min=0.01, **kw)[source]#
Bases:
StrategyInteractive genetic algorithm (IGA; Takagi, 2001).
The evaluator chooses (or ranks, rates) candidates; parents are drawn with probability proportional to their utility, recombined (BLX-α, SBX, arithmetic or uniform crossover) and mutated. Chosen and explicitly kept candidates survive unchanged (
elite), as in Picbreeder, so that good designs are never lost between generations. Works on structured genomes throughproblem.representationas well.- Parameters:
- pop_size
int - n_select
int,optional - crossover{“blx”, “sbx”, “arithmetic”, “uniform”}
- crossover_rate
float - sigma
float Gaussian mutation step in the unit cube.
- mutation_rate
float,optional Per-gene mutation probability (default: every gene).
- elite
int Number of top-ranked candidates carried over unchanged (in addition to the ones the evaluator asked to keep).
- immigrants
float Fraction of random newcomers per generation (diversity).
- sigma_decay
float Multiplicative annealing of
sigmaper generation.
- pop_size
Examples using easyiec.strategies.InteractiveGA#
The EASY-IEC algorithm: a self-adaptive evolution strategy driven by clicks
Fighting fatigue with a surrogate of the evaluator
The Blind Watchmaker and novelty-filtered galleries
Simulated users: benchmarking with a known ground truth
An AI judge in the loop: prompts, images and debiasing
Verbal steering: “much brighter, slightly less saturated”
Fuzzy partitions and robot paths: geometry an expert can judge
Tuning an image-segmentation pipeline with a ground truth
Fractals: Julia sets, strange attractors, IFS and flames