Alternate independent SAC training, population replacement, and archive variation.
Population-Based Training MAP-Elites following Pierrot and Flajolet (ICLR 2023).
Each population slot owns a SAC learner, replay buffer, and random
streams. After measuring the initial population, each generation
replaces low-ranked agents with top-ranked donors, injects agents
from the archive into middle ranks, and trains each slot separately.
Iso+LineDD offspring combine complete trainable agent states.
Replay holds only exploratory training transitions.
:param env_factory: Factory for a continuous Box Gymnasium environment.
:param archive: Empty one-elite Grid or CVTGrid for measured policies.
:param descriptor: Episodic descriptor callback as in NeuralMAPElites.
:param sac: Base SACConfig used for each agent.
:param hyperparameter_ranges: Optional mapping of SAC field names to
inclusive (min, max) mutation ranges. Supports actor, critic and
temperature learning rates, gamma, tau, and target_entropy.
Omit to vary the actor and critic learning rates by factors of
0.5 through 2. An empty mapping disables hyperparameter resampling.
:param population_size: Number of independent SAC agents.
:param elite_count: Number of top-ranked eligible population donors.
:param exploit_count: Number of lowest-ranked slots replaced from donors.
:param archive_replacements: Number of middle-ranked slots replaced from archive elites.
:param training_steps_per_agent: Environment training steps per agent per generation.
:param offspring: Number of additionally scored genetic offspring per generation.
:param kwargs: Native policy architecture, episode, mutation, and seed settings.
Definition at line 80 of file pbt.py.