QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.evolvability_es.QualityEvolvabilityES Class Reference

Optimize one center by Pareto-ranking quality and descriptor displacement. More...

Public Member Functions

 center (self)
 Return a copy of the current parameters.
 stats (self)
 Return the training evaluator and ES update counts.
 run (self, evaluate, budget)
 Use an additional budget of offspring evaluations, in complete mirrored batches.
 sample_offspring (self, evaluate, count, *, seed)
 Measure fresh, independently drawn offspring without changing the search streams.

Detailed Description

Optimize one center by Pareto-ranking quality and descriptor displacement.

Run mirrored ES with centered Pareto ranks and an Adam ascent step.

Evolvability is squared descriptor distance from the current offspring
mean. Normalize descriptor axes in the evaluator if their units differ.
Search optimizes the mutation distribution with one fixed sigma. It
maintains a single center and evaluates offspring around it.

:param x0: Finite initial parameter vector.
:param pairs: Number of mirrored perturbation pairs per ES update.
:param sigma: Gaussian standard deviation for mutation.
:param learning_rate: Adam ascent step size.
:param l2: Nonnegative L2 coefficient applied to the gradient.
:param maximize: Maximize fitness if true, minimize otherwise.
:param quality_only: Run the matched fitness-only ES control if true.
:param ind_domain: Optional common inclusive parameter bounds.
:param seed: Private seed for mirrored noise and evaluator seeds.

Definition at line 68 of file evolvability_es.py.

Member Function Documentation

◆ center()

qdpy.algorithms.evolvability_es.QualityEvolvabilityES.center ( self)

Return a copy of the current parameters.

Return a copy of the center, which can be used with a new evaluator.

Definition at line 109 of file evolvability_es.py.

◆ run()

qdpy.algorithms.evolvability_es.QualityEvolvabilityES.run ( self,
evaluate,
budget )

Use an additional budget of offspring evaluations, in complete mirrored batches.

Parameters
evaluateCallable of (parameters, rollout_seed) returning (fitness, descriptors).
budgetMaximum additional training calls.
Returns
Cumulative EvolvabilityESStats.
Use up to budget calls. Any remainder smaller than 2*pairs stays unspent.

Definition at line 149 of file evolvability_es.py.

◆ sample_offspring()

qdpy.algorithms.evolvability_es.QualityEvolvabilityES.sample_offspring ( self,
evaluate,
count,
* ,
seed )

Measure fresh, independently drawn offspring without changing the search streams.

Parameters
evaluateCallable with the same contract as run().
countNumber of fresh offspring to evaluate.
seedSeed for independent mutation and evaluation.
Returns
OffspringSample with exactly count rows.
Measure an independent sample around the current center using the training sigma.

Definition at line 182 of file evolvability_es.py.

◆ stats()

qdpy.algorithms.evolvability_es.QualityEvolvabilityES.stats ( self)

Return the training evaluator and ES update counts.

Return cumulative search statistics.

Definition at line 115 of file evolvability_es.py.


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