QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.multiple_behavior_spaces.NSMBS Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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 )
Parameters
descriptor_sizesNumber of coordinates in each behavior view.
sampleCallable (rng) returning a genome.
mutateCallable (parent, rng) returning an offspring genome.
population_sizeNumber of initial proposals and maximum survivors.
offspringNumber of offspring attempted per generation.
neighborsNumber of eligible nearest neighbors used for novelty.
archive_capacityMaximum retained historical records.
archive_additionsMaximum random new records retained per generation.
seedSeed for operators, measurement seeds, and selection.

Definition at line 81 of file multiple_behavior_spaces.py.

Member Function Documentation

◆ run()

qdpy.algorithms.multiple_behavior_spaces.NSMBS.run ( self,
evaluate,
budget )

Attempt evaluations, keeping incomplete generations for the next call.

Parameters
evaluateCallable (genome, rollout_seed) returning (fitness, views) or None on failure.
budgetNumber of evaluations to attempt in this call.

Definition at line 156 of file multiple_behavior_spaces.py.


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