|
QDpy
|
Optimize deterministic Box policies using archive and rollout-buffer crossover. More...
Public Member Functions | |
| stats (self) | |
| Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites | |
| 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. | |
Optimize deterministic Box policies using archive and rollout-buffer crossover.
Mix Iso+LineDD and action sequence crossover in each generation. Draw the policy to mutate from the archive and a donor episode from the preceding evaluated batch, including rejected candidates. Compare the two rewards-to-go on their original trajectories. Compute the parent's actions on the donor's observations, and use a vector-Jacobian product to apply performance-weighted action differences. This gradient operation uses stored episodes and spends no environment steps. Gymnasium evaluation uses the synchronous NeuralMAPElites loop. :param env_factory: Factory for a single environment with a finite floating-point Box action space. :param archive: Empty, parentless, best-only objective Grid or CVTGrid. :param batch_size: Candidates proposed from a frozen archive per generation. :param genetic_offspring: Number of Iso+LineDD proposals per post-warmup generation. :param gradient_steps: Policy parameter updates for each ASCII offspring. :param gradient_batch_size: Maximum number of offspring per vectorized gradient update. :param learning_rate: Alpha before normalization by prefix length and squared bandwidth. :param bandwidth: RBF length scale in normalized action coordinates. :param state_floor: Minimum state cosine similarity weight. :param clip_threshold: Action kernel threshold for suppressing negative-gain variation. :param gamma: Discount factor for timestep rewards-to-go. :param kwargs: NeuralMAPElites settings. Use one evaluated episode per candidate.
Definition at line 61 of file ascii_me.py.
| qdpy.rl.ascii_me.ASCIIME.stats | ( | self | ) |
Return measured steps and the total offline mutation work.
Reimplemented from qdpy.rl.search.NeuralMAPElites.
Definition at line 112 of file ascii_me.py.