• Regularizer for L2 regularization.

    Adds a term to the loss to penalize large weights: loss += sum(l2 * x^2)

    Parameters

    • Optional config: L2Args

    Returns Regularizer

    Doc

Generated using TypeDoc