QDpy
Loading...
Searching...
No Matches
innovation_engine.py File Reference

Keep a champion per classifier output and track switches between their lineages. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.innovation_engine.ClassChampion
 A class's best candidate and its proposal identity. More...
class  qdpy.algorithms.innovation_engine.ClassifierIlluminationResult
 Champions and observed goal switches from a fixed-budget run. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.innovation_engine.classifier_illumination (initialise, mutate, classify, *, classes, budget, initial_samples=1, seed=0)
 Evolve a shared set of candidates against all classifier outputs.

Detailed Description

Keep a champion per classifier output and track switches between their lineages.

See also
https://doi.org/10.1162/EVCO_a_00189

Definition in file innovation_engine.py.

Function Documentation

◆ classifier_illumination()

qdpy.algorithms.innovation_engine.classifier_illumination ( initialise,
mutate,
classify,
* ,
classes,
budget,
initial_samples = 1,
seed = 0 )

Evolve a shared set of candidates against all classifier outputs.

Run the fixed-class MAP-Elites variant of an Innovation Engine.

``initialise(rng)`` returns a candidate, and ``mutate(candidate, rng)``
varies a copy of one uniformly sampled class champion. ``classify(candidate)``
returns one finite score per class in a stable order. Each evaluation
competes independently against all class champions. An accepted update
in a class other than the sampled parent class is one goal switch.

The callbacks define the representation, renderer, and classifier.
Candidates can win several classes in one call, which counts as one
evaluation. Ties retain the earlier champion. Scores are maximized.

Definition at line 43 of file innovation_engine.py.