|
QDpy
|
Evolve local Pareto fronts with Iso+LineDD and per-objective TD3 mutations. More...
Public Member Functions | |
| stats (self) | |
| Return cumulative environment, replay, and optimizer counts. | |
| train (self, max_env_steps) | |
| Score complete episodes within an additional step limit and merge their fronts. | |
| 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. | |
Evolve local Pareto fronts with Iso+LineDD and per-objective TD3 mutations.
MOME-PGX from Janmohamed, Pierrot and Cully (GECCO 2023).
Use one transition buffer for all objectives and independent twin
critics and target actors for each objective. Sample cells uniformly
and then sample their members by finite crowding distance. ParetoGrid
truncation preserves boundary points when admitting measured policies.
:param env_factory: Factory for a single Gymnasium environment with Box spaces.
:param archive: Empty parentless ParetoGrid with crowding truncation.
:param reward_vector: Callable of (observation, action, successor, info)
returning one raw reward per archive objective.
:param descriptor: Callable of a completed Episode returning descriptor coordinates.
:param td3: Optional TD3Config for replay, optimizer, and target settings.
:param population_size: Even generation size, split equally between genetic
and gradient mutations. Gradient slots rotate among the objectives.
:param critic_steps: TD3 minibatch updates per objective and generation.
:param pg_steps: Adam steps per gradient-mutated policy.
:param pg_learning_rate: Adam step size for gradient mutation.
:param kwargs: Native neural MAP-Elites policy, evaluation, and seed arguments.
Definition at line 46 of file mome_pgx.py.
| qdpy.rl.mome_pgx.MOMEPGX.stats | ( | self | ) |
Return cumulative environment, replay, and optimizer counts.
Report policy counts in archive objective order.
Reimplemented from qdpy.rl.mome_p2c._ParetoPolicySearch.
Definition at line 101 of file mome_pgx.py.
| qdpy.rl.mome_pgx.MOMEPGX.train | ( | self, | |
| max_env_steps ) |
Score complete episodes within an additional step limit and merge their fronts.
Merge the measured prefix if an interaction limit ends a generation early.
Reimplemented from qdpy.rl.mome_p2c._ParetoPolicySearch.
Definition at line 154 of file mome_pgx.py.