|
QDpy
|
Illuminate maps by one planner's cost or the cost gap between two planners. More...
Public Member Functions | |
| stats (self) | |
| audit (self, layout, seeds) | |
| Measure an existing map independently on a caller-supplied seed panel. | |
| run (self, budget, *, proposal_budget=None, evolve=True) | |
| Spend an additional map budget and a separate proposal cap. | |
Illuminate maps by one planner's cost or the cost gap between two planners.
Run the QD-MAPPER scenario workflow with bounded Iso+LineDD proposals. A generator maps a real genome to a binary obstacle grid. Optionally repair the grid before evaluation. Each distinct layout is measured on the same seeded panel. All planners receive the same case per seed. Save the actual repaired layout under the elite's "layout" score to audit it without calling the generator or solver again. :param archive: Empty parentless best-only Grid or CVTGrid maximizing the score. :param dimension: Number of real genotype coordinates. :param generate: Callable (genome) returning a rectangular binary layout. :param make_case: Callable (layout, seed) returning an immutable planner instance. :param planners: One or two callbacks (layout, case) -> finite costs, larger is harder. :param describe: Callable (layout) returning the descriptor vector. :param repair: Optional callable (layout) returning a valid layout or None. :param panel_size: Number of training cases shared by the planners. :param absolute_gap: Use absolute instead of signed cost difference for two planners. :param ind_domain: Finite common genome bounds. :param iso_sigma: Independent mutation deviation. :param line_sigma: Directional mutation deviation. :param seed: Independent proposal and training-panel seed.
Definition at line 187 of file qd_mapper.py.
| qdpy.algorithms.qd_mapper.QDMapper.audit | ( | self, | |
| layout, | |||
| seeds ) |
Measure an existing map independently on a caller-supplied seed panel.
Score the given map without updating the archive or search counters.
Definition at line 261 of file qd_mapper.py.
| qdpy.algorithms.qd_mapper.QDMapper.run | ( | self, | |
| budget, | |||
| * | , | ||
| proposal_budget = None, | |||
| evolve = True ) |
Spend an additional map budget and a separate proposal cap.
Return cumulative statistics, skipping duplicate repaired layouts. Stop before exceeding either cap. Rejected maps spend proposals and repair attempts only. With evolve=False, sample uniformly as a matched-budget control.
Definition at line 269 of file qd_mapper.py.
| qdpy.algorithms.qd_mapper.QDMapper.stats | ( | self | ) |
Snapshot cumulative search work.
Definition at line 234 of file qd_mapper.py.