QDpy
Loading...
Searching...
No Matches
set_scalarization.py File Reference

Optimize a compact repertoire against a shared panel of behavior targets. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.set_scalarization.SetScalarizationResult
 Final repertoire and per-target costs, with exact evaluator accounting. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.set_scalarization._scalarize (costs, smoothing, reference)
 qdpy.algorithms.set_scalarization.set_scalarized_search (gradient_evaluate, initial_population, targets, *, epochs, bandwidth, smoothing=.05, scalarization="ssom", reference=None, quality_floor=0., learning_rate=.02, ind_domain=(0., 1.), maximize=True, archive=None)
 Minimize smooth target costs jointly over a fixed population.

Detailed Description

Optimize a compact repertoire against a shared panel of behavior targets.

See also
https://arxiv.org/abs/2602.00478

Definition in file set_scalarization.py.

Function Documentation

◆ _scalarize()

qdpy.algorithms.set_scalarization._scalarize ( costs,
smoothing,
reference )
protected
Return the smooth loss and its derivatives with respect to probe costs.

Definition at line 47 of file set_scalarization.py.

◆ set_scalarized_search()

qdpy.algorithms.set_scalarization.set_scalarized_search ( gradient_evaluate,
initial_population,
targets,
* ,
epochs,
bandwidth,
smoothing = .05,
scalarization = "ssom",
reference = None,
quality_floor = 0.,
learning_rate = .02,
ind_domain = (0., 1.),
maximize = True,
archive = None )

Minimize smooth target costs jointly over a fixed population.

Returns
SetScalarizationResult with the final evaluated designs.
Use projected Adam on the SSoM or STCH-Set objective from Lin et al.

:param gradient_evaluate: Callback returning one GradientEvaluation per point.
:param initial_population: Nonempty matrix of bounded genomes.
:param targets: Nonempty matrix of desired descriptors in measurement units.
:param epochs: Full-population updates after the initial measurements.
:param bandwidth: Gaussian distance scale in descriptor units.
:param smoothing: Positive log-sum-exp temperature in quality units.
:param scalarization: "ssom" or "stch-set".
:param reference: Fixed target-wise ideal costs for STCH-Set. If omitted,
    use each target's initial best cost minus smoothing.
:param quality_floor: Lower bound in signed fitness units. Shifted qualities
    must be nonnegative for distance discounting.
:param learning_rate: Projected Adam step in genome units.
:param ind_domain: Inclusive common genome interval.
:param maximize: Use higher raw fitness as better if true.
:param archive: Optional empty best-only Grid or CVTGrid for final reporting.

Definition at line 66 of file set_scalarization.py.