MarginRankingLoss¶
- class MarginRankingLoss(margin=0.0, size_average=None, reduce=None, reduction='mean')[source]¶
Bases:
pykeen.losses.PairwiseLoss
,torch.nn.modules.loss.MarginRankingLoss
A wrapper around the PyTorch margin ranking loss.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
Attributes Summary
The default strategy for optimizing the model’s hyper-parameters
Attributes Documentation