|
QDpy
|
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. | |
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.
| 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.
| qdpy.algorithms.evolvability_es.QualityEvolvabilityES.run | ( | self, | |
| evaluate, | |||
| budget ) |
Use an additional budget of offspring evaluations, in complete mirrored batches.
| evaluate | Callable of (parameters, rollout_seed) returning (fitness, descriptors). |
| budget | Maximum additional training calls. |
Use up to budget calls. Any remainder smaller than 2*pairs stays unspent.
Definition at line 149 of file evolvability_es.py.
| qdpy.algorithms.evolvability_es.QualityEvolvabilityES.sample_offspring | ( | self, | |
| evaluate, | |||
| count, | |||
| * | , | ||
| seed ) |
Measure fresh, independently drawn offspring without changing the search streams.
| evaluate | Callable with the same contract as run(). |
| count | Number of fresh offspring to evaluate. |
| seed | Seed for independent mutation and evaluation. |
Measure an independent sample around the current center using the training sigma.
Definition at line 182 of file evolvability_es.py.
| 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.