|
QDpy
|
Diverse initial designs for bounded local optimization. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.qd_seeding.QDIDStart |
| One local solve, including the seed and its best verified result. More... | |
| class | qdpy.algorithms.qd_seeding.QDIDResult |
| The measured starts, refined archive, and stage budgets. More... | |
| class | qdpy.algorithms.qd_seeding._RefinementBudgetReached |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.qd_seeding.qd_seeded_refinement (seed_archive, archive, evaluate, refine, *, dimension, search_budget, starts, refinement_budget_per_start, ind_domain=(0., 1.), initial_samples=8, seed_selection="archive", propose=None, seed=0) | |
| Illuminate initial designs before locally refining a bounded panel of them. | |
Diverse initial designs for bounded local optimization.
Definition in file qd_seeding.py.
| qdpy.algorithms.qd_seeding.qd_seeded_refinement | ( | seed_archive, | |
| archive, | |||
| evaluate, | |||
| refine, | |||
| * | , | ||
| dimension, | |||
| search_budget, | |||
| starts, | |||
| refinement_budget_per_start, | |||
| ind_domain = (0., 1.), | |||
| initial_samples = 8, | |||
| seed_selection = "archive", | |||
| propose = None, | |||
| seed = 0 ) |
Illuminate initial designs before locally refining a bounded panel of them.
| seed_archive | Empty Grid or CVTGrid of seed designs. |
| archive | Distinct final Grid or CVTGrid of measured refined designs. |
| evaluate | Callable (genome) returning ((fitness,), descriptors) or None. |
| refine | Callable (start, objective, rng) running a bounded local solve. |
| dimension | Length of the real-valued genome. |
| search_budget | Number of attempted seed search evaluations. |
| starts | Maximum number of local solves. |
| refinement_budget_per_start | Evaluator call cap for each local solve. |
| ind_domain | Shared finite bounds on the genome. |
| initial_samples | Number of uniform samples before MAP-Elites variation. |
| seed_selection | "archive" for QDID or "random" for independent restarts. |
| propose | Optional callable (archive, rng) for custom seed variation or initialization. |
| seed | Private random seed. |
Use the local solver's measured trials to choose one result per start. The solver receives a scalar minimization objective and a measured start. Return values from the solver are advisory. Selection uses the best feasible measured point, including the start, so a failed or worse trial cannot erase it. The objective raises a private stop signal before exceeding its call cap. A rejected measurement returns positive infinity. The random control samples seed designs independently and retains a uniform reservoir of valid points for refinement. Both modes start up to the configured number of solves without extra seed evaluations.
Definition at line 72 of file qd_seeding.py.