|
QDpy
|
Generational novelty search with a uniform choice among eligible behavior views. More...
Public Member Functions | |
| __init__ (self, descriptor_sizes, *, sample, mutate, population_size=32, offspring=32, neighbors=15, archive_capacity=256, archive_additions=4, seed=0) | |
| population (self) | |
| Survivors of the last completed generation. | |
| novelty_archive (self) | |
| History shared across views, excluding undefined records when scored. | |
| stats (self) | |
| Cumulative counters, including measurements in a partial generation. | |
| run (self, evaluate, budget) | |
| Attempt evaluations, keeping incomplete generations for the next call. | |
Generational novelty search with a uniform choice among eligible behavior views.
Each view supplies a novelty ranking over its defined descriptors. Survivors are selected one at a time, without replacement. Draw uniformly among views with remaining eligible candidates. If those views are exhausted, draw any remaining candidates uniformly. Past records use a bounded FIFO.
Definition at line 64 of file multiple_behavior_spaces.py.
| qdpy.algorithms.multiple_behavior_spaces.NSMBS.__init__ | ( | self, | |
| descriptor_sizes, | |||
| * | , | ||
| sample, | |||
| mutate, | |||
| population_size = 32, | |||
| offspring = 32, | |||
| neighbors = 15, | |||
| archive_capacity = 256, | |||
| archive_additions = 4, | |||
| seed = 0 ) |
| descriptor_sizes | Number of coordinates in each behavior view. |
| sample | Callable (rng) returning a genome. |
| mutate | Callable (parent, rng) returning an offspring genome. |
| population_size | Number of initial proposals and maximum survivors. |
| offspring | Number of offspring attempted per generation. |
| neighbors | Number of eligible nearest neighbors used for novelty. |
| archive_capacity | Maximum retained historical records. |
| archive_additions | Maximum random new records retained per generation. |
| seed | Seed for operators, measurement seeds, and selection. |
Definition at line 81 of file multiple_behavior_spaces.py.
| qdpy.algorithms.multiple_behavior_spaces.NSMBS.run | ( | self, | |
| evaluate, | |||
| budget ) |
Attempt evaluations, keeping incomplete generations for the next call.
| evaluate | Callable (genome, rollout_seed) returning (fitness, views) or None on failure. |
| budget | Number of evaluations to attempt in this call. |
Definition at line 156 of file multiple_behavior_spaces.py.