Generative
The module xpmir.letor.trainers.generative
contains trainers for
Generative neural IR models.
Losses
- XPM Configxpmir.letor.trainers.generative.PairwiseGenerativeLoss(*, weight)[source]
Bases:
Config
,TorchModule
Submit type:
xpmir.letor.trainers.generative.PairwiseGenerativeLoss
Generic loss for generative models
- weight: float = 1.0
The weight \(w\) with which the loss is multiplied (useful when combining with other ones)