|
QDpy
|
Alternate local curiosity training with measured MAP-Elites team variation. More...
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. | |
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.
| qdpy.rl.madecm.MADECM.stats | ( | self | ) |
Return cumulative learning and archive accounting.
Reimplemented from qdpy.rl.search.NeuralMAPElites.
| qdpy.rl.madecm.MADECM.train | ( | self, | |
| max_env_steps ) |
Spend additional environment steps in complete rollout and policy evaluations.
| max_env_steps | Hard cap on new simulator transitions, including archive evaluations. |
Reserve the horizon of each rollout and resume between complete stages.
Reimplemented from qdpy.rl.search.NeuralMAPElites.