QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.qqd.QQD Class Reference

Select named local-search operators using one Q-table row per batch position. More...

Public Member Functions

 q_values (self)
 stats (self)
 run (self, evaluate, budget)
 Continue MAP-Elites and update the tabular controller in evaluation order.

Detailed Description

Select named local-search operators using one Q-table row per batch position.

Run Qin et al.'s tabular operator selector with user-defined variation.

Select a parent uniformly from the archive and learn from admission
to its offspring's destination cell. A new cell yields one unit of
reward, improvement yields a scaled quality gain, and rejection
yields zero. The controller advances through batch positions
cyclically. Each operator call proposes one candidate.

:param archive: Parentless best-only Grid or CVTGrid with native scalar fitness.
:param sample: Callable (rng) returning a fresh genome.
:param operators: Ordered mapping of names to callbacks (genome, rng).
:param batch_size: Number of positions in the cyclic controller state.
:param initial_samples: Warm-up attempts, defaulting to batch_size.
:param controller: ``q-learning``, ``uniform``, or ``bandit``.
:param learning_rate: Initial Q-table step size in (0, 1].
:param discount: Bootstrapping coefficient in [0, 1].
:param epsilon: Initial exploration probability.
:param epsilon_decay: Multiplier applied after each local proposal.
:param anneal_batches: Optional batch count for annealing learning_rate toward .01.
:param improvement_scale: Positive denominator floor for relative improvement.
:param seed: Seed for selection, variation, and evaluator calls.

Definition at line 35 of file qqd.py.

Member Function Documentation

◆ q_values()

qdpy.algorithms.qqd.QQD.q_values ( self)
Return a copy of the table in batch position and operator order.

Definition at line 90 of file qqd.py.

◆ run()

qdpy.algorithms.qqd.QQD.run ( self,
evaluate,
budget )

Continue MAP-Elites and update the tabular controller in evaluation order.

Parameters
evaluateCallable (genome, seed) returning (fitness, descriptor) or None.
budgetAdditional candidate evaluation attempts.
Returns
A QQDStats snapshot.
Use the same next batch position when the search is continued.

Definition at line 145 of file qqd.py.

◆ stats()

qdpy.algorithms.qqd.QQD.stats ( self)
Return cumulative work and operator counts.

Definition at line 95 of file qqd.py.


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