|
QDpy
|
Compare designs on the same panel by mean, CVaR, or both. More...
Public Member Functions | |
| stats (self) | |
| ScenarioRiskStats | run (self, evaluate, budget) |
| Search under an additional scenario-call budget. | |
| ScenarioRiskAudit | audit (self, evaluate, scenarios, *, probabilities=None, budget=None) |
| Remeasure current elites on a caller-supplied held-out panel. | |
Compare designs on the same panel by mean, CVaR, or both.
Measure the same scenario panel for every design before archive admission. Use mean performance, empirical CVaR, or a Pareto front with mean and CVaR in that order. Average descriptors over the same panel with the supplied weights. Report raw performance and propagate errors when a scenario yields invalid data. :param archive: Empty best-only Grid or CVTGrid, or a native two-objective ParetoGrid. :param scenarios: Nonempty fixed sequence of scenario inputs. :param initializer: Callable (rng) generating a design. :param mutate: Callable (genome, rng) generating a new design. :param tail_fraction: Worst probability mass used for CVaR. :param objective: Mean, CVaR, or Pareto, specified in lowercase. :param probabilities: Optional weights aligned with the scenario panel. :param initial_samples: Number of proposals drawn from the initializer. :param seed: Private selection, initialization, and variation seed.
Definition at line 84 of file scenario_risk.py.
| ScenarioRiskAudit qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites.audit | ( | self, | |
| evaluate, | |||
| scenarios, | |||
| * | , | ||
| probabilities = None, | |||
| budget = None ) |
Remeasure current elites on a caller-supplied held-out panel.
| evaluate | Callable (genome, scenario) returning raw scalar fitness and descriptors. |
| scenarios | Separate panel for audit. |
| probabilities | Optional weights aligned with the audit panel. |
| budget | Optional hard audit cap on scenario calls. |
Reassign audited designs by measured behaviour while preserving the source archive.
Definition at line 196 of file scenario_risk.py.
| ScenarioRiskStats qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites.run | ( | self, | |
| evaluate, | |||
| budget ) |
Search under an additional scenario-call budget.
| evaluate | Callable (genome, scenario) returning raw scalar fitness and descriptors. |
| budget | Maximum additional scenario calls, in complete panels. |
Reuse the common panel and leave a partial panel unspent.
Definition at line 175 of file scenario_risk.py.
| qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites.stats | ( | self | ) |
Return cumulative scenario attempts and archive changes.
Definition at line 132 of file scenario_risk.py.