TransHRegularizer¶
- class TransHRegularizer(device, weight=0.05, epsilon=1e-05)[source]¶
Bases:
pykeen.regularizers.Regularizer
A regularizer for the soft constraints in TransH.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
Attributes Summary
The default strategy for optimizing the regularizer’s hyper-parameters
Methods Summary
forward
(x)Compute the regularization term for one tensor.
update
(*tensors)Update the regularization term based on passed tensors.
Attributes Documentation
- hpo_default: ClassVar[Mapping[str, Any]] = {'weight': {'high': 1.0, 'low': 0.01, 'scale': 'log', 'type': <class 'float'>}}¶
The default strategy for optimizing the regularizer’s hyper-parameters
Methods Documentation