QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.behavior_transfer.BehaviorCharacterization Class Reference

Fixed descriptor scaling learned offline from successful training runs. More...

Public Member Functions

 fit (cls, initial, successful, *, method="i2s", exponent=2., bounds=None)
 Fit Initial-to-Solution (I2S) or Across-Solutions (XS) weights.
 transform (self, descriptors)
 Apply the fixed normalization and scaling to a descriptor or batch.

Detailed Description

Fixed descriptor scaling learned offline from successful training runs.

Fit on training tasks, then apply the same transform to every search candidate.

Definition at line 46 of file behavior_transfer.py.

Member Function Documentation

◆ fit()

qdpy.algorithms.behavior_transfer.BehaviorCharacterization.fit ( cls,
initial,
successful,
* ,
method = "i2s",
exponent = 2.,
bounds = None )

Fit Initial-to-Solution (I2S) or Across-Solutions (XS) weights.

Parameters
initialOne normalized descriptor per initial training observation.
successfulOne normalized descriptor per successful training observation.
method"i2s" centers on initial observations, "xs" on successful observations.
exponentNonnegative distance exponent. Zero assigns uniform weights.
boundsOptional fixed feature bounds to normalize raw observations to unit scale.
Returns
A fitted characterization usable across tasks with the same features.

Definition at line 60 of file behavior_transfer.py.


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