Combine a categorical critic and several updates per transition with DNS.
Evolve a population of continuous policies using replay-based updates.
The same critic processes current and successor state-action pairs in
one batch. It bootstraps categorical returns from the detached
successor predictions, then uses its mean return in the SAC actor loss.
Replay priorities use errors in the expected return. Each generation
combines genetic mutation, policy gradients, and a shared actor
snapshot. Complete measured candidates compete by dominated novelty.
:param env_factory: Factory for a single Gymnasium Box environment.
:param descriptor: Callable mapping a complete Episode to a finite descriptor vector.
:param config: SACConfig for replay, entropy, and network settings.
:param policy: PolicyConfig for the Gaussian actors.
:param return_bounds: Finite lower and upper values of the categorical support.
:param atoms: Number of support values.
:param updates_per_transition: Critic updates per recorded step after warm-up.
:param priority_exponent: Prioritized replay exponent. Zero gives uniform replay.
:param population_size: Maximum number of measured DNS survivors.
:param batch_size: Number of rollouts contributing to a population update.
:param novelty_neighbors: Number of fitter neighbors for dominated novelty.
:param gradient_steps: Learner updates on each gradient offspring.
:param iso_sigma: Independent Gaussian variation scale.
:param line_sigma: Shared Iso+LineDD direction scale.
:param max_episode_steps: Per-episode cap, treated as truncation.
:param seed: Seed for actor initialization, rollouts, replay, and variation.
:param device: CPU or CUDA.
Definition at line 174 of file qdhuac.py.