|
QDpy
|
Breed by novelty, local quality, and local predicted transferability. More...
Public Member Functions | |
| archive (self) | |
| population (self) | |
| transfers (self) | |
| stats (self) | |
| predict_error (self, descriptors) | |
| Predict Euclidean descriptor discrepancy with the current transfer data. | |
| run (self, simulate, simulation_budget, *, evaluate_target=None, target_budget=0) | |
| Run simulation and optional target evaluations with independent attempt caps. | |
Breed by novelty, local quality, and local predicted transferability.
Maintain a simulator repertoire with occasional measurements on a target system. Periodically sample one candidate from the combined population and repertoire, observe its target descriptor, and update a linear nu-SVR discrepancy model. Novelty and local quality and error ranks determine NSGA-II survival. A locally competing archive candidate wins on quality when both errors meet the transfer threshold. If either misses that threshold, the lower predicted error wins. :param sample: Callable (rng) returning a genome iterable. :param mutate: Callable (parent_genome, rng) returning an offspring. :param population_size: Initial and offspring batch size and survivor capacity. :param neighbors: Number of neighbors in the population and repertoire union. :param novelty_threshold: Novelty needed to enter without replacing a neighbor. :param transfer_threshold: Maximum acceptable predicted target descriptor error. :param transfer_period: Number of completed simulator batches between transfer attempts. :param maximize: Prefer larger quality when True and smaller quality otherwise. :param seed: Random seed for variation, transfer selection, and both evaluators.
Definition at line 54 of file tbr_evolution.py.
| qdpy.algorithms.tbr_evolution.TBREvolution.archive | ( | self | ) |
Return the current repertoire with simulated quality and descriptors.
Definition at line 97 of file tbr_evolution.py.
| qdpy.algorithms.tbr_evolution.TBREvolution.population | ( | self | ) |
Return the last selected breeding population.
Definition at line 102 of file tbr_evolution.py.
| qdpy.algorithms.tbr_evolution.TBREvolution.predict_error | ( | self, | |
| descriptors ) |
Predict Euclidean descriptor discrepancy with the current transfer data.
| descriptors | Batch of simulated descriptors with consistent dimensions. |
Use an optimistic zero before transfer data and the observed constant for one pair.
Definition at line 120 of file tbr_evolution.py.
| qdpy.algorithms.tbr_evolution.TBREvolution.run | ( | self, | |
| simulate, | |||
| simulation_budget, | |||
| * | , | ||
| evaluate_target = None, | |||
| target_budget = 0 ) |
Run simulation and optional target evaluations with independent attempt caps.
| simulate | Callable (genome, seed) returning (quality, simulated descriptor) or None. |
| simulation_budget | Additional simulator evaluation attempts. |
| evaluate_target | Callable (genome, seed) returning a target descriptor or None. |
| target_budget | Maximum additional target attempts. |
Spend simulator attempts and skip scheduled transfers when the target budget is exhausted.
Definition at line 206 of file tbr_evolution.py.
| qdpy.algorithms.tbr_evolution.TBREvolution.stats | ( | self | ) |
Return attempts and failures by evaluation source.
Definition at line 112 of file tbr_evolution.py.
| qdpy.algorithms.tbr_evolution.TBREvolution.transfers | ( | self | ) |
Return measured simulator–target pairs used for fitting.
Definition at line 107 of file tbr_evolution.py.