QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.dsage.DSAGESurrogate Class Reference

CPU neural surrogate with an optional first stage for ancillary observations. More...

Public Member Functions

 fit (self, x, targets, auxiliary=None)
 Fit fresh networks on measured targets and ancillary labels.
 predict (self, x)
 Predict fitness and descriptors for a batch of encoded genomes.

Detailed Description

CPU neural surrogate with an optional first stage for ancillary observations.

Train a PyTorch MLP on encoded genome rows.

With ancillary targets, a first network predicts them. A second
network consumes the encoded genome and those predictions to
predict fitness and descriptors. Both losses train the first network.
When auxiliary targets are absent, train only the second network.

Definition at line 42 of file dsage.py.

Member Function Documentation

◆ fit()

qdpy.algorithms.dsage.DSAGESurrogate.fit ( self,
x,
targets,
auxiliary = None )

Fit fresh networks on measured targets and ancillary labels.

Fit using input rows and targets ordered as fitness then descriptors.

Definition at line 61 of file dsage.py.

◆ predict()

qdpy.algorithms.dsage.DSAGESurrogate.predict ( self,
x )

Predict fitness and descriptors for a batch of encoded genomes.

Return a matrix in the original target units.

Definition at line 115 of file dsage.py.


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