|
QDpy
|
Run MAP-Elites between feedback rounds and penalize drift in competition. More...
Public Member Functions | |
| __init__ (self, archive, *, sample, mutate, initial_samples=8, seed=0) | |
| archive (self) | |
| Active preference-ranked grid, replaced after each successful choice. | |
| panel (self) | |
| Current selectable designs, in archive iteration order. | |
| decision_model (self) | |
| Current fitted decision model, or None before feedback. | |
| stats (self) | |
| Cumulative evaluation and feedback costs. | |
| choose (self, indices, *, penalty=.75, projection="tsne") | |
| Refit the preference model and seed a new live archive from selected designs. | |
| run (self, evaluate, budget) | |
| Spend additional evaluator attempts with the current preference model. | |
Run MAP-Elites between feedback rounds and penalize drift in competition.
Fit a new decision model from the active panel at each user feedback round. The active archive ranks by preference-adjusted fitness and records the underlying measurement and drift in the scores udqd_raw_fitness and udqd_drift. The measured archive always ranks by raw fitness.
Definition at line 119 of file user_driven_qd.py.
| qdpy.algorithms.user_driven_qd.UserDrivenQD.__init__ | ( | self, | |
| archive, | |||
| * | , | ||
| sample, | |||
| mutate, | |||
| initial_samples = 8, | |||
| seed = 0 ) |
| archive | Empty parentless, scalar, best-only Grid or CVTGrid with finite fitness bounds. |
| sample | Callable (rng) returning a numeric genome. |
| mutate | Callable (parent, rng) returning a numeric offspring. |
| initial_samples | Initial evaluations that draw from sample. |
| seed | Seed for operators, evaluations, and decision projections. |
Definition at line 132 of file user_driven_qd.py.
| qdpy.algorithms.user_driven_qd.UserDrivenQD.choose | ( | self, | |
| indices, | |||
| * | , | ||
| penalty = .75, | |||
| projection = "tsne" ) |
Refit the preference model and seed a new live archive from selected designs.
| indices | Nonempty proper subset of current panel indices. |
| penalty | Strength of the multiplicative penalty in normalized utility, in [0, 1]. |
| projection | "tsne" or "pca" for the decision embedding. |
Definition at line 182 of file user_driven_qd.py.
| qdpy.algorithms.user_driven_qd.UserDrivenQD.run | ( | self, | |
| evaluate, | |||
| budget ) |
Spend additional evaluator attempts with the current preference model.
| evaluate | Callable (genome, seed) returning (fitness, descriptors) or None. |
| budget | Number of additional evaluator calls, including failures. |
Definition at line 210 of file user_driven_qd.py.