yamle.regularizers.gradient module#
- class yamle.regularizers.gradient.GradientNoiseRegularizer(eta, gamma, *args, **kwargs)[source]#
Bases:
BaseRegularizerThis is a class for a gradient noise regularization.
It adds a noise sampled from a normal distribution with mean 0 and standard deviation std to the gradient.
It follows the paper: https://arxiv.org/pdf/1511.06807.pdf
- Parameters: