QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.dvd_es.DvDES Class Reference

Optimize multiple centers with local rewards and shared population volumes. More...

Public Member Functions

 population (self)
 stats (self)
 initialization_cost (self)
 round_cost (self)
 run (self, evaluate, budget)
 Spend at most an additional evaluator-call budget.

Detailed Description

Optimize multiple centers with local rewards and shared population volumes.

Compute one determinant for each simultaneous population perturbation.

For each perturbation index, measure all members and compute one
shared diversity score. Mix separate centered ranks of reward and
diversity in the antithetic ES gradients. Each member uses its own
Adam moments. Reevaluate all proposed centers before committing a
round. A fixed diversity_weight of zero runs independent ES updates.
Set diversity_weight to None to use Beta-Bernoulli Thompson sampling
with weights 0 and 0.5 and an increase in best center reward as feedback.

:param initial_population: At least two finite initial parameter vectors of equal length.
:param pairs: Antithetic perturbation pairs per round and member.
:param sigma: Standard deviation of each Gaussian perturbation.
:param learning_rate: Adam update size.
:param diversity_weight: Proportion of the diversity gradient in [0, 1] or None for adaptation.
:param bandwidth: RBF length scale in embedding coordinates.
:param ridge: Diagonal stabilization added to the Gram matrix.
:param ind_domain: Optional common inclusive parameter bounds.
:param seed: Private seed for Gaussian probes, weighting, and evaluations.

Definition at line 80 of file dvd_es.py.

Member Function Documentation

◆ initialization_cost()

qdpy.algorithms.dvd_es.DvDES.initialization_cost ( self)
Return the number of calls needed to measure the initial centers.

Definition at line 138 of file dvd_es.py.

◆ population()

qdpy.algorithms.dvd_es.DvDES.population ( self)
Return the last successfully measured centers in member order.

Definition at line 128 of file dvd_es.py.

◆ round_cost()

qdpy.algorithms.dvd_es.DvDES.round_cost ( self)
Return the call reservation for one complete generation.

Definition at line 143 of file dvd_es.py.

◆ run()

qdpy.algorithms.dvd_es.DvDES.run ( self,
evaluate,
budget )

Spend at most an additional evaluator-call budget.

Parameters
evaluateCallable taking (genome, rollout_seed) and returning (reward, embedding) or None.
budgetMaximum additional evaluator calls including any center measurements.
Returns
Cumulative DvDESStats.
Continue the search, starting only rounds whose complete cost fits.

Definition at line 212 of file dvd_es.py.

◆ stats()

qdpy.algorithms.dvd_es.DvDES.stats ( self)
Return cumulative costs and update counts.

Definition at line 133 of file dvd_es.py.


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