brainpy.algorithms.utils.L1L2Regularization#

class brainpy.algorithms.utils.L1L2Regularization(alpha, l1_ratio=0.5)[source]#

L1 and L2 Regularization.

__init__(alpha, l1_ratio=0.5)[source]#

Methods

__init__(alpha[, l1_ratio])

grad(w)