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: Strategy

Interactive 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 through problem.representation as well.

Parameters:
pop_sizeint
n_selectint, optional
crossover{“blx”, “sbx”, “arithmetic”, “uniform”}
crossover_ratefloat
sigmafloat

Gaussian mutation step in the unit cube.

mutation_ratefloat, optional

Per-gene mutation probability (default: every gene).

eliteint

Number of top-ranked candidates carried over unchanged (in addition to the ones the evaluator asked to keep).

immigrantsfloat

Fraction of random newcomers per generation (diversity).

sigma_decayfloat

Multiplicative annealing of sigma per generation.

Examples using easyiec.strategies.InteractiveGA#

A first interactive session: evolving a Julia set

A first interactive session: evolving a Julia set

The EASY-IEC algorithm: a self-adaptive evolution strategy driven by clicks

The EASY-IEC algorithm: a self-adaptive evolution strategy driven by clicks

Fighting fatigue with a surrogate of the evaluator

Fighting fatigue with a surrogate of the evaluator

The Blind Watchmaker and novelty-filtered galleries

The Blind Watchmaker and novelty-filtered galleries

Simulated users: benchmarking with a known ground truth

Simulated users: benchmarking with a known ground truth

An AI judge in the loop: prompts, images and debiasing

An AI judge in the loop: prompts, images and debiasing

Panels: several evaluators, one decision

Panels: several evaluators, one decision

Verbal steering: “much brighter, slightly less saturated”

Verbal steering: "much brighter, slightly less saturated"

A factorial benchmark with simulated users

A factorial benchmark with simulated users

Reports, animations and the burden of a session

Reports, animations and the burden of a session

Designing a beer fermentation temperature profile

Designing a beer fermentation temperature profile

Fuzzy partitions and robot paths: geometry an expert can judge

Fuzzy partitions and robot paths: geometry an expert can judge

Tuning an image-segmentation pipeline with a ground truth

Tuning an image-segmentation pipeline with a ground truth

Fractals: Julia sets, strange attractors, IFS and flames

Fractals: Julia sets, strange attractors, IFS and flames

Artificial life: biomorphs and L-system plants

Artificial life: biomorphs and L-system plants

Beyond images: melodies and slogans

Beyond images: melodies and slogans

Claude as the evaluator of a session

Claude as the evaluator of a session

You and Claude together in a notebook gallery

You and Claude together in a notebook gallery