sample_weighers
This module contains classes for weighing samples in a batch.
Currently, this is used in loss functions.
- class GroundStateOnlySampleWeigher[source]
Sample weigher that assigns a weight of 1 to the samples that the ground state and 0 otherwise.
- class HasEnergyLabelSampleWeigher[source]
Sample weigher that assigns a weight of 1 to the samples with an energy label and 0 otherwise.
- class InitialGuessOnlySampleWeigher[source]
Sample weigher that assigns a weight of 1 to the samples with
scf_iteration == 0and 0 otherwise.
- class MinSCFIterationSampleWeigher(min_scf_iteration: int)[source]
Sample weigher that assigns a weight of 1 to the samples with
scf_iteration >= min_scf_iterationand 0 otherwise.
- class ProductSampleWeigher(*sample_weighers: SampleWeigher)[source]
Sample weigher that combines multiple sample weighers by multiplying their weights.