|
QDpy
|
Combine genetic variation with fresh PPO updates on copied elites. More...
Additional Inherited Members | |
| Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites | |
| stats (self) | |
| 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. | |
Combine genetic variation with fresh PPO updates on copied elites.
Use a configurable mixture of genetic and PPO-improved offspring.
After initial evaluations, a PPO offspring copies a parent actor and
starts a fresh value network and optimizer. A single fresh collection
is followed by the configured PPO epochs. Its final actor is then
evaluated independently with the same scoring as genetic offspring.
:param env_factory: Callable returning a fresh Gymnasium environment.
:param archive: Native reporting archive as in :class:`NeuralMAPElites`.
:param ppo: Optional :class:`PPOConfig` for offspring improvement.
:param ppo_probability: Probability of selecting PPO for an eligible
offspring. A short remaining budget can require genetic variation.
:param kwargs: Evaluation, policy, and variation options for
:class:`NeuralMAPElites`.