QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.novelty_es.NoveltyES Class Reference

Select one policy by novelty and update it using ranked Gaussian perturbations. More...

Public Member Functions

 population (self)
 best (self)
 history (self)
 stats (self)
 step_cost (self)
 run (self, evaluate, budget, *, executor=None)
 Run the shared initialization and subsequent rank-based ES steps.

Detailed Description

Select one policy by novelty and update it using ranked Gaussian perturbations.

Use Conti et al.'s shared novelty memory and three search objectives.

Each step selects one member with probability proportional to its
novelty. Separately rank the probe rewards and novelty scores, then
combine their gradient estimates. NS-ES uses only novelty. NSR-ES
averages both signals. NSRA-ES starts with reward and lowers its
weight as best measured center reward stagnates.

:param initial_population: Nonempty matrix of finite parameter vectors.
:param mode: ``ns-es``, ``nsr-es``, or ``nsra-es``.
:param archive: Optional parentless best-only reporting Grid or CVTGrid.
    It uses reward maximization and does not affect selection.
:param pairs: Number of antithetic Gaussian perturbation pairs per step.
:param sigma: Gaussian standard deviation.
:param learning_rate: Step size of the per-member Adam update.
:param l2: Nonnegative weight decay in the parameter gradient.
:param neighbors: Number of nearest measured center descriptors.
:param distance: Symmetric nonnegative descriptor distance, default Euclidean.
:param history_capacity: Optional maximum number of recent center descriptors.
:param patience: Stagnant steps before reducing NSRA-ES reward weight.
:param weight_step: Amount to change that weight on a plateau or new best.
:param ind_domain: Optional common parameter interval for clipped ES.
:param seed: Private seed for selection, perturbations, and evaluations.

Definition at line 52 of file novelty_es.py.

Member Function Documentation

◆ best()

qdpy.algorithms.novelty_es.NoveltyES.best ( self)
Return the historically best measured center, or None before a successful call.

Definition at line 123 of file novelty_es.py.

◆ history()

qdpy.algorithms.novelty_es.NoveltyES.history ( self)
Return shared descriptors from committed center measurements.

Definition at line 128 of file novelty_es.py.

◆ population()

qdpy.algorithms.novelty_es.NoveltyES.population ( self)
Return measured centers in population order.

Definition at line 118 of file novelty_es.py.

◆ run()

qdpy.algorithms.novelty_es.NoveltyES.run ( self,
evaluate,
budget,
* ,
executor = None )

Run the shared initialization and subsequent rank-based ES steps.

Parameters
evaluateCallable (genome, seed) returning (reward, descriptor), or None on failure.
budgetMaximum number of additional evaluator calls.
executorOptional executor with submit(); feedback is consumed in proposal order.
Returns
Cumulative NoveltyESStats.
Retry initialization if all centers fail and reserve full ES steps.

Definition at line 234 of file novelty_es.py.

◆ stats()

qdpy.algorithms.novelty_es.NoveltyES.stats ( self)
Return a snapshot of cumulative costs and current reward weight.

Definition at line 133 of file novelty_es.py.

◆ step_cost()

qdpy.algorithms.novelty_es.NoveltyES.step_cost ( self)
Return evaluator calls reserved for a probe batch and its center.

Definition at line 139 of file novelty_es.py.


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