NoRegularizer¶
- class NoRegularizer(device, weight=1.0, apply_only_once=False)[source]¶
Bases:
pykeen.regularizers.Regularizer
A regularizer which does not perform any regularization.
Used to simplify code.
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]] = {}¶
The default strategy for optimizing the regularizer’s hyper-parameters
Methods Documentation