QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites Class Reference

Run MAP-Elites with explicit, transactional descriptor swaps. More...

Public Member Functions

 archive (self)
 axes (self)
 stats (self)
 run (self, evaluate, budget)
 Run additional proposals with the current set of descriptor axes.
 report (self, axes)
 Build a separate reporting grid from cached elite measurements.
 switch_axis (self, name, replacement, *, refresh=None, refresh_budget=0)
 Collapse onto unaffected axes and transfer the surviving elites.

Detailed Description

Run MAP-Elites with explicit, transactional descriptor swaps.

Search with interpretable descriptors and reuse historical elite measurements.

Evaluators receive a real-valued genome and private integer seed.
Return scalar fitness and a mapping of named finite measurements.
Include all active axes and optionally any measurements for future
swaps. The search owns its Grid and replaces it after a successful
rebuild. Retaining a reference to the old Grid gives a snapshot.

:param axes: Nonempty sequence of distinct DescriptorAxis objects.
:param dimension: Number of real genome coordinates.
:param fitness_domain: Inclusive scalar reporting fitness bounds.
:param maximize: True to prefer higher fitness.
:param ind_domain: Shared finite interval for all genome coordinates.
:param iso_sigma: Independent mutation standard deviation.
:param line_sigma: Shared directional mutation standard deviation.
:param seed: Seed for proposals, evaluations, and separate refreshes.

Definition at line 65 of file descriptor_mutation.py.

Member Function Documentation

◆ archive()

qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites.archive ( self)
Return the active native grid.

Definition at line 113 of file descriptor_mutation.py.

◆ axes()

qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites.axes ( self)
Return the active named axes in grid order.

Definition at line 118 of file descriptor_mutation.py.

◆ report()

qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites.report ( self,
axes )

Build a separate reporting grid from cached elite measurements.

Project current elites onto supplied axes without new evaluator calls.

Definition at line 165 of file descriptor_mutation.py.

◆ run()

qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites.run ( self,
evaluate,
budget )

Run additional proposals with the current set of descriptor axes.

Return cumulative statistics. Evaluator errors propagate to the caller.

Definition at line 145 of file descriptor_mutation.py.

◆ stats()

qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites.stats ( self)
Snapshot cumulative evaluation and switch counts.

Definition at line 123 of file descriptor_mutation.py.

◆ switch_axis()

qdpy.algorithms.descriptor_mutation.DescriptorMutationMAPElites.switch_axis ( self,
name,
replacement,
* ,
refresh = None,
refresh_budget = 0 )

Collapse onto unaffected axes and transfer the surviving elites.

Replace an axis and rebuild the active grid as one operation.

Keep the best elite in each cell of the unaffected projection.
With one axis, keep the single best elite. Reuse cached values
for the replacement axis. If a survivor lacks that measurement,
refresh(genome, seed) must return its new scalar descriptor. The
refresh budget must cover all missing values before any call is
made. On failure the original grid remains active and attempted
refreshes are still counted.

Definition at line 174 of file descriptor_mutation.py.


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