QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.user_driven_qd.UserDrivenQD Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

qdpy.algorithms.user_driven_qd.UserDrivenQD.__init__ ( self,
archive,
* ,
sample,
mutate,
initial_samples = 8,
seed = 0 )
Parameters
archiveEmpty parentless, scalar, best-only Grid or CVTGrid with finite fitness bounds.
sampleCallable (rng) returning a numeric genome.
mutateCallable (parent, rng) returning a numeric offspring.
initial_samplesInitial evaluations that draw from sample.
seedSeed for operators, evaluations, and decision projections.

Definition at line 132 of file user_driven_qd.py.

Member Function Documentation

◆ choose()

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.

Parameters
indicesNonempty proper subset of current panel indices.
penaltyStrength 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.

◆ run()

qdpy.algorithms.user_driven_qd.UserDrivenQD.run ( self,
evaluate,
budget )

Spend additional evaluator attempts with the current preference model.

Parameters
evaluateCallable (genome, seed) returning (fitness, descriptors) or None.
budgetNumber of additional evaluator calls, including failures.

Definition at line 210 of file user_driven_qd.py.


The documentation for this class was generated from the following file: