QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.mortar.MORTAR Class Reference

Use bounded evaluation trees to score and evolve components. More...

Public Member Functions

 __init__ (self, archive, *, sample, mutate, describe, partners=(), generate_partner=None, initial_samples=8, composition_budget=20, max_components=4, branching=3, selection="ucb", exploration=1.4, seed=0)
 stats (self)
 Cumulative search costs.
 last_round (self)
 Most recent completed evaluation tree and its measured credit.
 run (self, evaluate, budget)
 Run additional candidate trees and admit measured component credit.

Detailed Description

Use bounded evaluation trees to score and evolve components.

Fit a MAP-Elites repertoire of components using their CITS scores.

Provide callbacks for representation-specific variation and composition
evaluation. All nodes are complete designs. Each transition adds one
component and measures the resulting design. The root is a singleton
candidate whose measured value can inform marginal contributions.

Definition at line 114 of file mortar.py.

Constructor & Destructor Documentation

◆ __init__()

qdpy.algorithms.mortar.MORTAR.__init__ ( self,
archive,
* ,
sample,
mutate,
describe,
partners = (),
generate_partner = None,
initial_samples = 8,
composition_budget = 20,
max_components = 4,
branching = 3,
selection = "ucb",
exploration = 1.4,
seed = 0 )
Parameters
archiveEmpty scalar best-only Grid or CVTGrid maximizing CITS.
sampleCallable (rng) returning an initial component genome.
mutateCallable (parent, rng) returning a new component genome.
describeCallable (component) returning archive descriptors.
partnersIterable of fixed library components.
generate_partnerOptional callable (components, rng) returning a new partner or None.
initial_samplesInitial number of candidate proposals from sample.
composition_budgetMaximum complete designs evaluated per candidate, including the root.
max_componentsMaximum number of components in a complete design.
branchingMaximum expanded children at each tree node.
selection"ucb" or "random" traversal.
explorationExploration weight used by UCB.
seedPrivate seed for proposals, composition search, and evaluation.

Definition at line 136 of file mortar.py.

Member Function Documentation

◆ run()

qdpy.algorithms.mortar.MORTAR.run ( self,
evaluate,
budget )

Run additional candidate trees and admit measured component credit.

Parameters
evaluateCallable (components, seed) returning scalar quality in [-1, 1] or None.
budgetNumber of candidate proposals, including unsuccessful trees.

Definition at line 258 of file mortar.py.


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