|
QDpy
|
Compare batch acquisition, solver panels, constrained novelty, and scenario risk. More...
Go to the source code of this file.
Functions | |
| batch_risk.grid (shape, fitness=(0., 1.), features=None) | |
| batch_risk.uniform_design (rng) | |
| batch_risk.mutate_design (parent, rng) | |
| batch_risk.bayesian (method, seed, *, budget=48, width=4, workers=1, delay=0., timing=False) | |
| batch_risk.knapsack_instance (rng) | |
| batch_risk.knapsack_mutation (parent, rng) | |
| batch_risk.knapsack_solver (instance, seed, *, priority) | |
| batch_risk.instance_search (method, seed) | |
| batch_risk.island_design (point) | |
| batch_risk.constraints (method, seed, *, budget=360) | |
| batch_risk.stress_test (point, stress) | |
| batch_risk.risk (method, seed) | |
| batch_risk.main () | |
Compare batch acquisition, solver panels, constrained novelty, and scenario risk.
Definition in file batch_risk.py.
| batch_risk.bayesian | ( | method, | |
| seed, | |||
| * | , | ||
| budget = 48, | |||
| width = 4, | |||
| workers = 1, | |||
| delay = 0., | |||
| timing = False ) |
Compare real evaluation counts and archive quality on a warped descriptor map.
Definition at line 42 of file batch_risk.py.
| batch_risk.constraints | ( | method, | |
| seed, | |||
| * | , | ||
| budget = 360 ) |
Compare the two novelty populations with constrained MAP-Elites.
Definition at line 131 of file batch_risk.py.
| batch_risk.grid | ( | shape, | |
| fitness = (0., 1.), | |||
| features = None ) |
Build a best-only maximizing grid with native scores.
Definition at line 23 of file batch_risk.py.
| batch_risk.instance_search | ( | method, | |
| seed ) |
Compare random generation, margin selection, and combined novelty.
Definition at line 98 of file batch_risk.py.
| batch_risk.island_design | ( | point | ) |
Measure one of four disconnected feasibility regions in the unit square.
Definition at line 125 of file batch_risk.py.
| batch_risk.knapsack_instance | ( | rng | ) |
Generate eight weight/value pairs for a small 0/1 knapsack.
Definition at line 74 of file batch_risk.py.
| batch_risk.knapsack_mutation | ( | parent, | |
| rng ) |
Change one weight or value without leaving the instance domain.
Definition at line 79 of file batch_risk.py.
| batch_risk.knapsack_solver | ( | instance, | |
| seed, | |||
| * | , | ||
| priority ) |
Pack greedily by priority and return value as a fraction of total value.
Definition at line 86 of file batch_risk.py.
| batch_risk.main | ( | ) |
Emit one JSON record per seed and method, with timing only on request.
Definition at line 200 of file batch_risk.py.
| batch_risk.mutate_design | ( | parent, | |
| rng ) |
Mutate one unit-square coordinate with a clipped Gaussian step.
Definition at line 34 of file batch_risk.py.
| batch_risk.risk | ( | method, | |
| seed ) |
Compare mean, CVaR, and per-cell fronts on common training and audit panels.
Definition at line 175 of file batch_risk.py.
| batch_risk.stress_test | ( | point, | |
| stress ) |
Score nominal output minus the shortfall under a stress level.
Definition at line 168 of file batch_risk.py.
| batch_risk.uniform_design | ( | rng | ) |
Sample a unit-square genome.
Definition at line 29 of file batch_risk.py.