Optimize a fixed population with the Soft QD pairwise objective.
More...
Go to the source code of this file.
|
| | qdpy.algorithms.squad.soft_qd_score (qualities, descriptors, probes, *, sigma) |
| | Estimate the mean Soft QD behavior value over fixed probe points.
|
| | qdpy.algorithms.squad._batch_objective (quality, descriptors, rows, neighbors, gamma) |
| | qdpy.algorithms.squad.squad_search (gradient_evaluate, initial_population, *, epochs, gamma, quality_floor, ind_domain=(0., 1.), batch_size=None, neighbors=None, learning_rate=0.02, maximize=True, archive=None, seed=0) |
| | Update a population using measured objective and descriptor Jacobians.
|
Optimize a fixed population with the Soft QD pairwise objective.
Definition in file squad.py.
◆ _batch_objective()
| qdpy.algorithms.squad._batch_objective |
( |
| quality, |
|
|
| descriptors, |
|
|
| rows, |
|
|
| neighbors, |
|
|
| gamma ) |
|
protected |
Return the directed minibatch objective and its derivatives for all rows.
Definition at line 57 of file squad.py.
◆ soft_qd_score()
| qdpy.algorithms.squad.soft_qd_score |
( |
| qualities, |
|
|
| descriptors, |
|
|
| probes, |
|
|
* | , |
|
|
| sigma ) |
Estimate the mean Soft QD behavior value over fixed probe points.
Average the highest Gaussian-discounted quality at each probe.
Provide nonnegative qualities, one descriptor per solution, and a
nonempty matrix of probe descriptors. For uniform probes in a box,
multiplying by its volume estimates the integral over that box.
Definition at line 35 of file squad.py.
◆ squad_search()
| qdpy.algorithms.squad.squad_search |
( |
| gradient_evaluate, |
|
|
| initial_population, |
|
|
* | , |
|
|
| epochs, |
|
|
| gamma, |
|
|
| quality_floor, |
|
|
| ind_domain = (0., 1.), |
|
|
| batch_size = None, |
|
|
| neighbors = None, |
|
|
| learning_rate = 0.02, |
|
|
| maximize = True, |
|
|
| archive = None, |
|
|
| seed = 0 ) |
Update a population using measured objective and descriptor Jacobians.
Maximize the SQUAD objective with seeded minibatch Adam updates.
:param gradient_evaluate: Callable returning a GradientEvaluation for
one genome. Its Jacobian rows match raw fitness and descriptor order.
:param initial_population: Matrix of finite bounded genomes.
:param epochs: Number of complete passes after the initial evaluations.
Every pass reevaluates each updated point once.
:param gamma: Positive distance scale in descriptor units.
:param quality_floor: Lower bound in signed fitness units. Each signed
fitness must strictly exceed it for the square-root gradient.
:param ind_domain: Common bounds. Adam proposals are projected to this interval.
:param batch_size: Number of points per update. Defaults to the entire population.
:param neighbors: Maximum nearest neighbors per point. Defaults to all other
points. Zero gives independent quality optimization.
:param learning_rate: Positive Adam step size.
:param maximize: False negates raw fitness and its derivative.
:param archive: Optional empty best-only Grid or CVTGrid for final reporting.
:param seed: Local seed for minibatch order.
:returns: Measured final population and optional reporting archive.
Definition at line 84 of file squad.py.