|
QDpy
|
Surrogate illuminate, cluster predicted elites, and reseed search from selected families. More...
Public Member Functions | |
| __init__ (self, archive, dimension, describe, *, ind_domain=(0., 1.), initial_samples=16, acquisition_steps=128, prediction_steps=256, evaluations_per_fit=4, kappa=2., mutation_sigma=.08, embedding="pca", cluster_eps=.2, min_samples=2, seed=0) | |
| predictions (self) | |
| Predicted fitness and descriptors for current mean-only map elites. | |
| prototypes (self) | |
| Current clusters and medoids, available after two successful observations. | |
| stats (self) | |
| Cumulative budgets from the lifetime of this search. | |
| select_prototypes (self, indices=None) | |
| Use the specified families from the latest round to seed both maps. | |
| run (self, evaluate, budget) | |
| Spend the supplied true-evaluation budget and refresh prototypes. | |
Surrogate illuminate, cluster predicted elites, and reseed search from selected families.
The supplied grid only stores measured elites. All valid measurements train the GP. Inspect predictions and prototypes after each run, then select any number of prototype families before resuming. Selecting families sets breeding seeds in both surrogate maps. Mutation may still visit other parts of the domain.
Definition at line 81 of file produqd.py.
| qdpy.algorithms.produqd.PRODUQD.__init__ | ( | self, | |
| archive, | |||
| dimension, | |||
| describe, | |||
| * | , | ||
| ind_domain = (0., 1.), | |||
| initial_samples = 16, | |||
| acquisition_steps = 128, | |||
| prediction_steps = 256, | |||
| evaluations_per_fit = 4, | |||
| kappa = 2., | |||
| mutation_sigma = .08, | |||
| embedding = "pca", | |||
| cluster_eps = .2, | |||
| min_samples = 2, | |||
| seed = 0 ) |
| archive | Empty scalar best-only Grid or CVTGrid with finite descriptor bounds. |
| dimension | Number of decision coordinates. |
| describe | Cheap callable (genome) returning descriptors or None outside the descriptor support. |
| ind_domain | Shared or per-coordinate finite parameter bounds. |
| initial_samples | Real calls assigned to initial Sobol sampling. |
| acquisition_steps | Offspring attempts per upper-confidence map. |
| prediction_steps | Offspring attempts in the mean-only map at the end of a round. |
| evaluations_per_fit | Maximum expensive calls per acquisition map. |
| kappa | Positive standard-deviation coefficient for upper confidence. |
| mutation_sigma | Gaussian mutation scale in unit decision coordinates. |
| embedding | "pca" or "tsne" for clustering designs. |
| cluster_eps | DBSCAN neighborhood radius in the embedding coordinates. |
| min_samples | DBSCAN neighborhood size. |
| seed | Seed for Sobol sampling, mutation, and dimensionality reduction. |
Definition at line 103 of file produqd.py.
| qdpy.algorithms.produqd.PRODUQD.run | ( | self, | |
| evaluate, | |||
| budget ) |
Spend the supplied true-evaluation budget and refresh prototypes.
| evaluate | Expensive callable (genome) returning scalar fitness or None on failure. |
| budget | Number of expensive calls to attempt in this round. |
Definition at line 304 of file produqd.py.
| qdpy.algorithms.produqd.PRODUQD.select_prototypes | ( | self, | |
| indices = None ) |
Use the specified families from the latest round to seed both maps.
| indices | Nonempty iterable of current prototype indices. None clears the focus. |
Definition at line 159 of file produqd.py.