QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.learned_qd.LQDSelector Class Reference

Permutation-equivariant attention over measured quality and descriptors. More...

Public Member Functions

 parameters (self)
 score (self, quality, descriptors)
 Score a population using signed quality and measured descriptors.
 save (self, path)
 Write versioned numeric weights to a local NPZ file.
 load (cls, path)
 Read an LQD selector from a local numeric NPZ file.

Detailed Description

Permutation-equivariant attention over measured quality and descriptors.

Produce one learned survival score per population member.

The model standardizes each input column across the population. Its
attention blocks have a residual feed-forward layer and no positional
encodings. The weights can be optimized by an external optimizer.

:param descriptor_size: Number of measured descriptor coordinates.
:param width: Embedding width, divisible by the number of heads.
:param heads: Number of attention heads.
:param layers: Number of attention blocks.
:param parameters: Optional one-dimensional vector of model weights.
:param seed: Local initialization seed when weights are unspecified.

Definition at line 28 of file learned_qd.py.

Member Function Documentation

◆ load()

qdpy.algorithms.learned_qd.LQDSelector.load ( cls,
path )

Read an LQD selector from a local numeric NPZ file.

Validate the format version and model geometry before constructing the selector.

Definition at line 99 of file learned_qd.py.

◆ parameters()

qdpy.algorithms.learned_qd.LQDSelector.parameters ( self)
Return a copy of the flat model weights.

Definition at line 65 of file learned_qd.py.

◆ save()

qdpy.algorithms.learned_qd.LQDSelector.save ( self,
path )

Write versioned numeric weights to a local NPZ file.

Save the model geometry and weights.

Definition at line 91 of file learned_qd.py.

◆ score()

qdpy.algorithms.learned_qd.LQDSelector.score ( self,
quality,
descriptors )

Score a population using signed quality and measured descriptors.

Return finite scores in the input order. Larger scores survive.

Definition at line 70 of file learned_qd.py.


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