QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.edo_cs.EDOCS Class Reference

Cluster live descriptors and independently update each representative with ES. More...

Public Member Functions

 archive (self)
 stats (self)
 next_round_cost (self)
 run (self, evaluate, budget)
 Measure initialization and as many complete outer rounds as the budget permits.

Detailed Description

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.

Member Function Documentation

◆ archive()

qdpy.algorithms.edo_cs.EDOCS.archive ( self)
Return measured policies from oldest to newest.

Definition at line 106 of file edo_cs.py.

◆ next_round_cost()

qdpy.algorithms.edo_cs.EDOCS.next_round_cost ( self)
Return evaluator calls required by the next round, or zero if empty.

Definition at line 117 of file edo_cs.py.

◆ run()

qdpy.algorithms.edo_cs.EDOCS.run ( self,
evaluate,
budget )

Measure initialization and as many complete outer rounds as the budget permits.

Parameters
evaluateCallable (parameters, seed) returning (reward, descriptor) or None.
budgetMaximum additional rollout attempts, including probes.
Returns
Cumulative EDOCSStats.
Reserve each whole round before updating archive or bandit state.

Definition at line 216 of file edo_cs.py.

◆ stats()

qdpy.algorithms.edo_cs.EDOCS.stats ( self)
Return cumulative attempts and counts of observed arm rewards.

Definition at line 111 of file edo_cs.py.


The documentation for this class was generated from the following file: