• Regularizer for L1 and L2 regularization.

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

    Parameters

    • Optional config: L1L2Args

    Returns Regularizer

    Doc

Generated using TypeDoc