QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.faery.FAERY Class Reference

Fit an initialization prior using successful descendants and mutation depth. More...

Public Member Functions

 adapt (self, prior, task, evaluate, budget=None, *, seed=0)
 Evaluate one prior on a task without modifying it.
 fit (self, initial, tasks, evaluate, *, generations)
 Learn a fixed-size population from training tasks.

Detailed Description

Fit an initialization prior using successful descendants and mutation depth.

Meta-evolve a prior using mutation-only MAP-Elites as the inner search.

During training, the current prior and its mutated candidates are
measured together on each task. A successful genome credits its
original root, including a successful root at depth zero. Track
successes by genome within each task, using their first successful
evaluations. Pareto selection favors more successes and lower
mean mutation depth.

:param grid_factory: Callable taking a task and returning a fresh, empty best-only Grid or CVTGrid.
:param mutate: Callable taking (genome_tuple, rng) and returning a new immutable genome.
:param task_budget: Maximum evaluator calls for one inner task, including initial genomes.
:param offspring: Number of outer mutation proposals per generation.
:param tasks_per_generation: Number of tasks sampled without replacement. Defaults to all tasks.
:param success_limit: Optional stop after this many distinct successes. All initial genomes are measured.
:param seed: Seed for outer sampling, mutation, and tie-breaking.

Definition at line 80 of file faery.py.

Member Function Documentation

◆ adapt()

qdpy.algorithms.faery.FAERY.adapt ( self,
prior,
task,
evaluate,
budget = None,
* ,
seed = 0 )

Evaluate one prior on a task without modifying it.

Run mutation-only MAP-Elites under a separate evaluation budget.

evaluate(task, genome) returns (scalar fitness, descriptors, success).
The success flag is independent of archive admission.

Definition at line 112 of file faery.py.

◆ fit()

qdpy.algorithms.faery.FAERY.fit ( self,
initial,
tasks,
evaluate,
* ,
generations )

Learn a fixed-size population from training tasks.

Reassess the combined parent and offspring candidates on shared task panels.

Definition at line 171 of file faery.py.


The documentation for this class was generated from the following file: