MarginRankingLoss¶
-
class
MarginRankingLoss(margin=0.0, size_average=None, reduce=None, reduction='mean')[source]¶ Bases:
torch.nn.modules.loss.MarginRankingLoss,pykeen.losses.PairwiseLossA wrapper around the PyTorch margin ranking loss.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
Attributes Summary
Attributes Documentation