QDpy
Loading...
Searching...
No Matches
qd_seeding.py File Reference

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.

Detailed Description

Diverse initial designs for bounded local optimization.

See also
https://doi.org/10.1145/3670693

Definition in file qd_seeding.py.

Function Documentation

◆ qd_seeded_refinement()

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.

Parameters
seed_archiveEmpty Grid or CVTGrid of seed designs.
archiveDistinct final Grid or CVTGrid of measured refined designs.
evaluateCallable (genome) returning ((fitness,), descriptors) or None.
refineCallable (start, objective, rng) running a bounded local solve.
dimensionLength of the real-valued genome.
search_budgetNumber of attempted seed search evaluations.
startsMaximum number of local solves.
refinement_budget_per_startEvaluator call cap for each local solve.
ind_domainShared finite bounds on the genome.
initial_samplesNumber of uniform samples before MAP-Elites variation.
seed_selection"archive" for QDID or "random" for independent restarts.
proposeOptional callable (archive, rng) for custom seed variation or initialization.
seedPrivate random seed.
Returns
QDIDResult with measured starts and stage costs.
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.