QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.learned_exploration.BRNS Class Reference

Explore through prediction error against a frozen random behavior embedding. More...

Inheritance diagram for qdpy.algorithms.learned_exploration.BRNS:
qdpy.algorithms.learned_exploration._ObservationSearch

Public Member Functions

 novelty (self, observation)
 Score one observation using the current behavior recognizer.
Public Member Functions inherited from qdpy.algorithms.learned_exploration._ObservationSearch
 population (self)
 stats (self)
 run (self, evaluate, budget)
 Measure another hard budget while retaining partial generations.

Detailed Description

Explore through prediction error against a frozen random behavior embedding.

Run archive-free Behavior Recognition Novelty Search.

Score candidates with squared embedding prediction error before
training on the generation's newly measured observations. Use a
slightly deeper predictor with leaky ReLU and a linear output layer.
The retained population and the unfinished generation bound memory.

:param dimension: Number of real parameters per genome.
:param ind_domain: Common inclusive genome bounds.
:param population_size: Maximum breeding population.
:param offspring: Candidate evaluations in subsequent generations.
:param mutation_sigma: Gaussian strength as a fraction of the bounds' span.
:param embedding_size: Width of the fixed random embedding.
:param hidden_size: Width of the target and predictor hidden layers.
:param epochs: Prediction training epochs per generation.
:param batch_size: Maximum observations per optimization step.
:param learning_rate: Adam learning rate.
:param seed: Private rollout, variation and training seed.
:param device: PyTorch device.

Definition at line 400 of file learned_exploration.py.

Member Function Documentation

◆ novelty()

qdpy.algorithms.learned_exploration.BRNS.novelty ( self,
observation )

Score one observation using the current behavior recognizer.

Return squared prediction error for the observation.

Definition at line 446 of file learned_exploration.py.


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