QDpy
Loading...
Searching...
No Matches
qdpy.rl.madecm.MADECM Class Reference

Alternate local curiosity training with measured MAP-Elites team variation. More...

Inheritance diagram for qdpy.rl.madecm.MADECM:
qdpy.rl.search.NeuralMAPElites

Public Member Functions

 stats (self)
 train (self, max_env_steps)
 Spend additional environment steps in complete rollout and policy evaluations.
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.

Detailed Description

Alternate local curiosity training with measured MAP-Elites team variation.

Train independent actors with centralized critics before each QD stage.

Each round collects one noisy learning episode, then evaluates the
learned team and genetically varied archive teams. Random network
distillation allocates a fixed number of extra updates across roles.
Archive fitness uses the caller's episode fitness or raw team return.
Archived actors can be exported without critics or curiosity models.

:param env_factory: Factory for a cooperative joint Box Gymnasium environment.
:param archive: Empty best-only Grid or CVTGrid maximizing episode fitness.
:param descriptor: Callable mapping an evaluation Episode to its descriptor.
:param config: MADECMConfig for replay and actor-critic updates.
:param population_size: Teams evaluated per round, including the learned team.
:param kwargs: Common NeuralMAPElites options including policy and episode horizon.

Definition at line 214 of file madecm.py.

Member Function Documentation

◆ stats()

qdpy.rl.madecm.MADECM.stats ( self)
Return cumulative learning and archive accounting.

Reimplemented from qdpy.rl.search.NeuralMAPElites.

Definition at line 245 of file madecm.py.

◆ train()

qdpy.rl.madecm.MADECM.train ( self,
max_env_steps )

Spend additional environment steps in complete rollout and policy evaluations.

Parameters
max_env_stepsHard cap on new simulator transitions, including archive evaluations.
Returns
Cumulative MADECMStats.
Reserve the horizon of each rollout and resume between complete stages.

Reimplemented from qdpy.rl.search.NeuralMAPElites.

Definition at line 275 of file madecm.py.


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