|
QDpy
|
Illuminate diverse sensor behaviors by coevolving actor and predictor genomes. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.minimize_surprise.MinimizeSurpriseResult |
| Sensor repertoire, number of evaluated genomes, and rollout accounting. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.minimize_surprise.prediction_accuracy (predicted, observed) | |
| Average one minus absolute prediction error over all sensors, agents, and steps. | |
| qdpy.algorithms.minimize_surprise.minimize_surprise_map_elites (archive, rollout, *, describe, sample, mutate, budget, repeats=3, initial_samples=16, seed=0) | |
| Search actor-predictor genomes with worst-repeat predictive quality. | |
Illuminate diverse sensor behaviors by coevolving actor and predictor genomes.
Definition in file minimize_surprise.py.
| qdpy.algorithms.minimize_surprise.minimize_surprise_map_elites | ( | archive, | |
| rollout, | |||
| * | , | ||
| describe, | |||
| sample, | |||
| mutate, | |||
| budget, | |||
| repeats = 3, | |||
| initial_samples = 16, | |||
| seed = 0 ) |
Search actor-predictor genomes with worst-repeat predictive quality.
| archive | Empty best-only Grid or CVTGrid with maximizing fitness. |
| rollout | Callable (genome, seed) returning paired prediction and observation arrays. |
| describe | Callable (observed) returning one behavior descriptor vector. |
| sample | Callable (rng) returning an initial actor-predictor genome. |
| mutate | Callable (parent, rng) returning an offspring genome. |
| budget | Number of measured genomes. |
| repeats | Number of common seeded rollouts per genome. |
| initial_samples | Number of unconditional sample calls. |
| seed | Private variation and rollout seed. |
Use the minimum prediction accuracy over repeats and average observed descriptors.
Definition at line 55 of file minimize_surprise.py.
| qdpy.algorithms.minimize_surprise.prediction_accuracy | ( | predicted, | |
| observed ) |
Average one minus absolute prediction error over all sensors, agents, and steps.
| predicted | Next-observation predictions in [0, 1]. |
| observed | Actual next observations in [0, 1], with the same nonempty shape. |
Align each prediction with the actual observation after the chosen action.
Definition at line 23 of file minimize_surprise.py.