SoftplusLoss

class SoftplusLoss(reduction='mean')[source]

Bases: pykeen.losses.PointwiseLoss

A loss function for the softplus.

Initializes internal Module state, shared by both nn.Module and ScriptModule.

Methods Summary

forward(logits, labels)

Calculate the loss for the given scores and labels.

Methods Documentation

forward(logits, labels)[source]

Calculate the loss for the given scores and labels.

Return type

FloatTensor