|
QDpy
|
Rotate active task archives, merge parents, and reuse measured task scores. More...
Public Member Functions | |
| checkpoint (self, elite) | |
| Copy an elite checkpoint for loading or external evaluation. | |
| aggregate (self) | |
| Merge the highest-scoring elite from each archive using softmax weights. | |
| run (self, evaluate, budget) | |
| Measure experts and offspring sequentially under an additional checkpoint budget. | |
Rotate active task archives, merge parents, and reuse measured task scores.
Maintain one Grid for each objective role and score every checkpoint on all tasks.
Each archive maximizes or minimizes its active task. Other tasks
supply the descriptor axes in the original order. Every measured
candidate is offered to all archives. Parent probabilities follow
the product of rescaled task performances in the active archive.
:param base: Ordered real numeric tensors from the common base model.
:param experts: Nonempty checkpoints with the same ordered tensor shapes.
:param task_domains: One finite increasing interval for each task score.
:param bins: Common bin count or one bin count per task descriptor.
:param fitness_weights: Optional signed weights for task directions.
All tasks maximize by default.
:param task_order: Optional sequence of breeding task indices. Defaults
to all tasks in order. One task gives a fixed-role control.
:param parent_weight_bounds: Positive (low, high) range for the product score.
:param merge_mean: Mean of the two Gaussian crossover coefficients.
:param merge_std: Standard deviation of the Gaussian crossover coefficients.
:param svd_max: Upper bound for each singular-component multiplier.
Set to None for crossover alone.
:param seed: Private seed for parent choice, crossover and mutation.
Definition at line 65 of file cycle_qd.py.
| qdpy.algorithms.cycle_qd.CycleQD.aggregate | ( | self | ) |
Merge the highest-scoring elite from each archive using softmax weights.
Return the paper's final weighted merge of the task specialists.
Definition at line 163 of file cycle_qd.py.
| qdpy.algorithms.cycle_qd.CycleQD.checkpoint | ( | self, | |
| elite ) |
Copy an elite checkpoint for loading or external evaluation.
Return independent writable arrays in the original tensor order.
Definition at line 158 of file cycle_qd.py.
| qdpy.algorithms.cycle_qd.CycleQD.run | ( | self, | |
| evaluate, | |||
| budget ) |
Measure experts and offspring sequentially under an additional checkpoint budget.
Call evaluate(checkpoint) for one score per task and return counters.
Definition at line 177 of file cycle_qd.py.