secure_learning.regularizers¶
Contains penalty functions.
Classes¶
Base class for regularizations. | |
Differentiable regularizations can be included via their gradient. | |
Implementation for L2 regularization: | |
Non-differential regularization can be included via a proximal | |
Implementation for L1 regularization: $f(w) = ||w||_1$. |
Module Contents¶
- class secure_learning.regularizers.DifferentiableRegularizer[source]¶
Differentiable regularizations can be included via their gradient.
- class secure_learning.regularizers.L2Regularizer(alpha: float)[source]¶
Implementation for L2 regularization: $$f(w) = frac{alpha}{2} times ||w||^2_2`.$$