Grow and train a population of tasks and their paired policies.
Run the generic Enhanced POET curriculum and transfer loop.
:param initial_task: Immutable hashable encoding of the starting task.
:param initial_policy: One finite real vector.
:param mutate_task: Callable (task, rng) returning a new task or None.
:param improve: Callable (task, policy, score, rng) returning a policy.
Its score callback takes one policy and charges the current budget.
:param minimal_criterion: Inclusive (too hard, too easy) raw score bounds.
:param reproduction_threshold: Minimum score at which a task can reproduce.
:param active_limit: Maximum simultaneously trained pairs.
:param proposals: Number of task mutations per reproduction round.
:param new_tasks: Maximum newly admitted tasks per reproduction round.
:param mutate_every: Interval between task reproduction rounds.
:param transfer_every: Interval between transfer checks. Use None to disable.
:param novelty_neighbors: Number of nearest task profiles used for novelty.
:param seed: Private seed for evaluation, mutation and optimization order.
Definition at line 62 of file poet.py.
| qdpy.algorithms.poet.EnhancedPOET.run |
( |
| self, |
|
|
| evaluate, |
|
|
| budget, |
|
|
* | , |
|
|
| rounds ) |
Continue co-evolution at most the specified rounds and score calls.
Return cumulative stats with a hard evaluator-call budget.
The evaluator accepts (task, policy, seed) and returns a scalar to
maximize. An interrupted round can leave completed pair updates in
place. Use the score callback for every evaluation in improve.
Definition at line 204 of file poet.py.