Discover a small population of diverse PPO policies with no required archive.
Optimize PPO policies using task and per-coordinate behavior advantages.
:param env_factory: Factory returning a fresh single Gymnasium environment.
:param feature: Callback (observation, action, successor, info) returning one
bounded behavior signal per coordinate after each transition.
:param feature_bounds: Finite increasing pairs in callback output units.
:param population_size: Number of independent actors and value functions.
:param ppo: PPOConfig with the rollout size, discount and optimizer settings.
:param policy: PolicyConfig used by each actor and its two value networks.
:param neighbors: Number of closest other policies used in the interaction.
Defaults to all other policies up to eight.
:param bandwidth: Gaussian scale in logit-transformed behavior units.
:param repulsion_cap: Norm cap for behavior advantage weights. Zero gives independent PPO.
:param quality_offset: Positive quality offset after subtracting the lowest population return.
:param ema: Moving average rate for completed episode statistics.
:param max_episode_steps: Horizon used when the environment runs longer.
:param seed: Nonnegative seed for independent member optimizers and rollouts.
:param device: Torch device.
Definition at line 146 of file reppo.py.