QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.task_archive.TaskArchiveSearch Class Reference

Generate tasks from a repertoire with bounded failure memory. More...

Public Member Functions

 entries (self)
 failed (self)
 stats (self)
 run (self, propose, evaluate, *, budget, review=None)
 Propose and screen tasks under an explicit attempt budget.

Detailed Description

Generate tasks from a repertoire with bounded failure memory.

Adapt OMNI-EPIC's successful/failed task archive to deterministic benchmarks.

Use a one-elite Grid or CVTGrid. The evaluator measures the result of a
fixed solver or solver panel. An optional post-generation reviewer checks
a solved candidate against its nearest measured tasks. This workflow
leaves policy training and task representation to the caller.

:param archive: Empty best-only, scalar maximizing Grid or CVTGrid.
:param neighbors: Maximum nearby examples passed to proposal and review callbacks.
:param failure_memory: Maximum measured unsolved tasks passed back to the proposer.
:param seed: Seed for parent selection and proposal callbacks.

Definition at line 65 of file task_archive.py.

Member Function Documentation

◆ entries()

qdpy.algorithms.task_archive.TaskArchiveSearch.entries ( self)
Return a snapshot of the retained measured tasks.

Definition at line 97 of file task_archive.py.

◆ failed()

qdpy.algorithms.task_archive.TaskArchiveSearch.failed ( self)
Return bounded memory of tasks that the evaluator could not solve.

Definition at line 105 of file task_archive.py.

◆ run()

qdpy.algorithms.task_archive.TaskArchiveSearch.run ( self,
propose,
evaluate,
* ,
budget,
review = None )

Propose and screen tasks under an explicit attempt budget.

Spend up to budget new proposals, counting failed and duplicate proposals.

:param propose: Callback (TaskRequest, rng) returning an immutable,
    hashable task or None.
:param evaluate: Callback (task) returning TaskAssessment, or None for
    an invalid encoding. A complete solver panel counts as one call.
:param review: Optional callback (TaskEntry, nearby_entries) returning
    whether a solved task qualifies for admission.
:param budget: Maximum additional calls to propose.

Definition at line 157 of file task_archive.py.

◆ stats()

qdpy.algorithms.task_archive.TaskArchiveSearch.stats ( self)
Return cumulative search calls and outcomes.

Definition at line 110 of file task_archive.py.


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