QDpy
Loading...
Searching...
No Matches
qdpy.rl.adaptive_pga.AdaHOME Class Reference

Adapt genetic and TD3 branch allocation using completed archive admissions. More...

Inheritance diagram for qdpy.rl.adaptive_pga.AdaHOME:
qdpy.rl.pga.PGAMAPElites qdpy.rl.search.NeuralMAPElites

Public Member Functions

 stats (self)
Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites
 train (self, max_env_steps, *, evaluation_batch_size=1, budget_aware=False)
 Spend an additional hard step budget on policy search.
 policy_for (self, individual, *, device=None, seed=0)
 Rebuild an independent inference actor from an archived genome.
 best_policy (self, *, device=None, seed=0)
 Rebuild the best archived actor for inference or export.

Detailed Description

Adapt genetic and TD3 branch allocation using completed archive admissions.

Combine coordinate crossover, independent elite replay, and UCB1 allocation.

Genetic offspring can copy whole weights from an archive donor after
Iso+LineDD. The replay ring retains all transitions and a second ring
retains full episodes from admitted candidates. TD3 and gradient
offspring sample from both. The two-arm bandit allocates the slots
alongside one evaluated greedy actor. Credit is applied only when
a scheduled proposal completes its rollout.

:param env_factory: Callable constructing a Gymnasium Box environment.
:param archive: Parentless native Grid or CVTGrid for measured descriptors.
:param adaptive: Enable bandit allocation instead of the fixed PGA ratio.
:param exploration: Nonnegative UCB1 exploration coefficient.
:param swap_probability: Chance of copying each weight from an archive donor.
:param elite_capacity: Maximum extra elite transitions retained.
:param elite_fraction: Fraction sampled from elite replay, in [0, 1).
:param kwargs: PGA-MAP-Elites evaluation, policy and optimizer settings.

Definition at line 158 of file adaptive_pga.py.

Member Function Documentation

◆ stats()

qdpy.rl.adaptive_pga.AdaHOME.stats ( self)
Report measured arm credit and both replay sizes.

Reimplemented from qdpy.rl.pga.PGAMAPElites.

Definition at line 240 of file adaptive_pga.py.


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