CombinedRegularizer

class CombinedRegularizer(regularizers, device, total_weight=1.0, apply_only_once=False)[source]

Bases: pykeen.regularizers.Regularizer

A convex combination of regularizers.

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

Attributes Summary

normalize

Methods Summary

forward(x)

Compute the regularization term for one tensor.

Attributes Documentation

normalize

Methods Documentation

forward(x)[source]

Compute the regularization term for one tensor.

Return type

FloatTensor