|
QDpy
|
Relevance-guided unsupervised discovery of abilities. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.ruda.RUDAEntry |
| An evaluated behavior and its descriptor in the current encoder. More... | |
| class | qdpy.algorithms.ruda.RUDAResult |
| Final unstructured archive, live encoder and search accounting. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.ruda.ruda_search (evaluate, solve_task, *, dimension, budget, capacity=128, descriptor_size=2, ind_domain=(0., 1.), novelty_threshold=.12, task_period=32, useful_capacity=64, neighbors=5, distance_floor=.02, guidance=True, fit_period=64, training_capacity=1024, encoder_factory=None, initial_samples=16, seed=0) | |
| Learn descriptors and update admissions from a bounded downstream-use buffer. | |
Relevance-guided unsupervised discovery of abilities.
Definition in file ruda.py.
| qdpy.algorithms.ruda.ruda_search | ( | evaluate, | |
| solve_task, | |||
| * | , | ||
| dimension, | |||
| budget, | |||
| capacity = 128, | |||
| descriptor_size = 2, | |||
| ind_domain = (0., 1.), | |||
| novelty_threshold = .12, | |||
| task_period = 32, | |||
| useful_capacity = 64, | |||
| neighbors = 5, | |||
| distance_floor = .02, | |||
| guidance = True, | |||
| fit_period = 64, | |||
| training_capacity = 1024, | |||
| encoder_factory = None, | |||
| initial_samples = 16, | |||
| seed = 0 ) |
Learn descriptors and update admissions from a bounded downstream-use buffer.
| evaluate | Callable (genome) returning (fitness, observation), or None for failure. |
| solve_task | Callable (archive_snapshot, rng) returning indices of useful entries. |
| dimension | Real genome width. |
| budget | Number of attempted behavior evaluations. |
| capacity | Hard repertoire size. |
| descriptor_size | Latent dimension. |
| ind_domain | Common finite bounds for genome coordinates. |
| novelty_threshold | Minimum directional separation for a new entry. |
| task_period | Evaluations between calls to the downstream solver. |
| useful_capacity | Number of previously used behaviors retained. |
| neighbors | Nearest useful observations included in relevance. |
| distance_floor | Positive floor on the mean distance in relevance. |
| guidance | Whether downstream feedback changes archive admission. |
| fit_period | Evaluations between encoder fits, or None for fixed observations. |
| training_capacity | Maximum number of raw observations for encoder fitting. |
| encoder_factory | Optional callable returning a fresh fit/transform encoder. |
| initial_samples | Number of uniform draws before archive-based variation. |
| seed | Private variation and task-solving seed. |
Use directed distances from each candidate to the current archive. Scale distance by the inverse mean distance to the closest useful behaviors. The task solver returns indices from the provided immutable snapshot. Retrain a fresh PCA encoder by default, then re-encode the entire repertoire and useful buffer from raw observations. Supply an encoder factory to use a different representation learner. Before fitting, use the first descriptor_size observation coordinates. An exact-size bound uses directed spacing to evict a crowded incumbent. Fitness is maximized when a close proposal competes with a neighbor.