Use bounded evaluation trees to score and evolve components.
More...
|
| | __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.
|
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.
◆ __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
-
| archive | Empty scalar best-only Grid or CVTGrid maximizing CITS. |
| sample | Callable (rng) returning an initial component genome. |
| mutate | Callable (parent, rng) returning a new component genome. |
| describe | Callable (component) returning archive descriptors. |
| partners | Iterable of fixed library components. |
| generate_partner | Optional callable (components, rng) returning a new partner or None. |
| initial_samples | Initial number of candidate proposals from sample. |
| composition_budget | Maximum complete designs evaluated per candidate, including the root. |
| max_components | Maximum number of components in a complete design. |
| branching | Maximum expanded children at each tree node. |
| selection | "ucb" or "random" traversal. |
| exploration | Exploration weight used by UCB. |
| seed | Private seed for proposals, composition search, and evaluation. |
Definition at line 136 of file mortar.py.
◆ run()
| qdpy.algorithms.mortar.MORTAR.run |
( |
| self, |
|
|
| evaluate, |
|
|
| budget ) |
Run additional candidate trees and admit measured component credit.
- Parameters
-
| evaluate | Callable (components, seed) returning scalar quality in [-1, 1] or None. |
| budget | Number 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: