QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.move.MOVE Class Reference

Breed one child per slot and compare it against all slots by strict majority. More...

Public Member Functions

 subsets (self)
 champions (self)
 stats (self)
 run (self, evaluate, budget)
 Evaluate complete or partial generations in deterministic slot order.

Detailed Description

Breed one child per slot and compare it against all slots by strict majority.

Run Dean and Cheney's MOVE with caller-supplied genomes and objective functions.

The initial population assigns one candidate to each slot. Within a
generation, all offspring use the incumbent snapshot, then compete
in slot order. Each objective casts a vote only for a strict
improvement. Slots keep their incumbent on a tied or losing vote.

:param objective_count: Number of values returned by the evaluator.
:param sample: Callable (rng) returning a genome iterable.
:param mutate: Callable (parent_genome, rng) returning an offspring iterable.
:param slots: Number of independently sampled subsets if subsets is omitted.
:param subset_size: Number of distinct indices per sampled subset.
    Defaults to five or the full objective count, whichever is smaller.
:param subsets: Optional explicit nonempty objective index subsets in slot order.
:param maximize: One Boolean direction for all objectives or one per objective.
:param seed: Seed for geometry, variation, and independent evaluations.

Definition at line 44 of file move.py.

Member Function Documentation

◆ champions()

qdpy.algorithms.move.MOVE.champions ( self)
Return the current champions in slot order, with None for empty slots.

Definition at line 95 of file move.py.

◆ run()

qdpy.algorithms.move.MOVE.run ( self,
evaluate,
budget )

Evaluate complete or partial generations in deterministic slot order.

Parameters
evaluateCallable (genome, seed) returning the objective vector or None.
budgetAdditional evaluator attempts.
Returns
Cumulative MOVEStats.
Spend the additional budget. A subsequent call continues the current generation.

Definition at line 120 of file move.py.

◆ stats()

qdpy.algorithms.move.MOVE.stats ( self)
Return cumulative telemetry.

Definition at line 100 of file move.py.

◆ subsets()

qdpy.algorithms.move.MOVE.subsets ( self)
Return the objective indices in each slot, including repeated subsets.

Definition at line 90 of file move.py.


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