Cluster live descriptors and independently update each representative with ES.
More...
Cluster live descriptors and independently update each representative with ES.
Implement EDO-CS over numeric policy vectors and a seeded evaluator.
Cluster the current archive with k-means at each round. Always breed
the best archived policy, then sample uniformly among the top policies
of each other cluster. Estimate raw ES gradients from Gaussian probes
against a frozen archive. Use UCB1 on each diversity weight's measured
improvement in return. Each accepted offspring is the newest archive
entry for FIFO capacity enforcement.
:param dimension: Number of parameters in each policy vector.
:param archive_size: Number of random initialization attempts and maximum live policies.
:param clusters: Maximum number of behavioral clusters.
:param top_per_cluster: Number of high-reward policies eligible in each other cluster.
:param sample: Optional callable (rng) returning initial parameters.
The default is uniform within ind_domain or [-1, 1] if unbounded.
:param ind_domain: Optional shared finite bounds for clipped ES.
:param novelty_neighbors: Number of nearest archived policies in the ES novelty term.
:param novelty_threshold: Descriptor radius within which reward decides replacement.
:param probes: Independent Gaussian probes per ES update.
:param es_steps: ES updates per selected policy before evaluating its final center.
:param sigma: Standard deviation of Gaussian perturbations.
:param learning_rate: Step size of the raw ES gradient estimator.
:param weights: Diversity weights made available as UCB arms.
Pass a single value for a fixed-weight ablation.
:param ucb_scale: Nonnegative scale of the confidence bonus.
:param seed: Seed for initialization, selection, perturbations, and rollouts.
Definition at line 48 of file edo_cs.py.