QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.poet.EnhancedPOET Class Reference

Grow and train a population of tasks and their paired policies. More...

Public Member Functions

 active (self)
 archived (self)
 stats (self)
 run (self, evaluate, budget, *, rounds)
 Continue co-evolution at most the specified rounds and score calls.

Detailed Description

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.

Member Function Documentation

◆ active()

qdpy.algorithms.poet.EnhancedPOET.active ( self)
Return currently trained pairs in their admission order.

Definition at line 105 of file poet.py.

◆ archived()

qdpy.algorithms.poet.EnhancedPOET.archived ( self)
Return retired pairs still used as references in PATA-EC.

Definition at line 110 of file poet.py.

◆ run()

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.

◆ stats()

qdpy.algorithms.poet.EnhancedPOET.stats ( self)
Return cumulative evaluation and event counts.

Definition at line 115 of file poet.py.


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