|
QDpy
|
Use descriptor-conditioned gradients and separate actor collection in MAP-Elites. More...
Additional Inherited Members | |
| Public Member Functions inherited from qdpy.rl.descriptor_search._DescriptorMAPElites | |
| stats (self) | |
| conditioned_policy (self, *, device=None) | |
| Rebuild an independent copy of the shared conditioned actor. | |
| train (self, max_env_steps) | |
| Spend a hard budget on archive candidates and any replay-only actor episodes. | |
| Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites | |
| 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. | |
Use descriptor-conditioned gradients and separate actor collection in MAP-Elites.
Implement the GECCO 2023 replay and offspring schedule.
In each post-warmup generation the trained actor collects replay-only
episodes at perturbed elite descriptors. Genetic and PG offspring fill
the archive batch. The PG critic is conditioned on the parent's
descriptor during variation. All archive candidates label the replay
target with their own measured episode descriptor.
:param env_factory: Gymnasium factory with bounded floating Box actions.
:param archive: Best-only Grid or CVTGrid with finite descriptor bounds.
:param td3: Replay and learner settings as a :class:`TD3Config`.
:param genetic_offspring: Iso+LineDD archive candidates per generation.
:param pg_offspring: Descriptor-conditioned PG candidates per generation.
:param actor_evaluations: Additional replay-only episodes per generation.
Defaults to the size of the archive offspring batch.
:param goal_noise: Standard deviation of active target perturbations
in normalized coordinates. Targets are clipped to the domain.
:param initial_policies: Random archive candidates before learning.
Defaults to the number of archive slots in one generation.
:param critic_steps: TD3 critic updates per generation.
:param pg_steps: Updates per copy of a parent selected for PG variation.
:param pg_learning_rate: Adam learning rate for PG variation.
:param length_scale: Positive kernel scale in normalized Euclidean units.
:param kwargs: Policy, scoring, and variation options from
:class:`NeuralMAPElites`. Step rewards must be nonnegative.
Definition at line 261 of file descriptor_search.py.