easyiec.strategies.InteractiveDE#

class easyiec.strategies.InteractiveDE(pop_size=8, F=0.6, CR=0.9, variant='rand/1', pairs_per_query=None, **kw)[source]#

Bases: Strategy

Interactive differential evolution with pairwise trial-versus-target duels.

Each generation builds one trial vector per target (DE/rand/1/bin or DE/current-to-best/1/bin; Storn and Price, 1997). Classical DE replaces a target if its trial is not worse, i.e. it only needs pairwise judgments, which people and LLM judges give most reliably. The duels of a generation are asked in one pairs query (or in chunks of pairs_per_query).

Parameters:
pop_sizeint

Number of targets.

F, CRfloat

Differential weight and crossover rate.

variant{“rand/1”, “current-to-best/1”}
pairs_per_queryint, optional

Split the duels of a generation over several queries.

Examples using easyiec.strategies.InteractiveDE#

CMA-ES, interactive PSO and pairwise differential evolution

CMA-ES, interactive PSO and pairwise differential evolution

Hybrid evaluation: the AI answers, people decide the hard cases

Hybrid evaluation: the AI answers, people decide the hard cases

A factorial benchmark with simulated users

A factorial benchmark with simulated users