QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites Class Reference

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.

Detailed Description

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.

Member Function Documentation

◆ audit()

ScenarioRiskAudit qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites.audit ( self,
evaluate,
scenarios,
* ,
probabilities = None,
budget = None )

Remeasure current elites on a caller-supplied held-out panel.

Parameters
evaluateCallable (genome, scenario) returning raw scalar fitness and descriptors.
scenariosSeparate panel for audit.
probabilitiesOptional weights aligned with the audit panel.
budgetOptional hard audit cap on scenario calls.
Returns
Measured archive, costs, and per-design measurements in source order.
Reassign audited designs by measured behaviour while preserving the source archive.

Definition at line 196 of file scenario_risk.py.

◆ run()

ScenarioRiskStats qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites.run ( self,
evaluate,
budget )

Search under an additional scenario-call budget.

Parameters
evaluateCallable (genome, scenario) returning raw scalar fitness and descriptors.
budgetMaximum additional scenario calls, in complete panels.
Returns
Cumulative ScenarioRiskStats.
Reuse the common panel and leave a partial panel unspent.

Definition at line 175 of file scenario_risk.py.

◆ stats()

qdpy.algorithms.scenario_risk.ScenarioRiskMAPElites.stats ( self)
Return cumulative scenario attempts and archive changes.

Definition at line 132 of file scenario_risk.py.


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