tick.prox.ProxL2Sq

class tick.prox.ProxL2Sq(strength: float, range: tuple = None, positive: bool = False)[source]

Proximal operator of the squared L2 norm (ridge penalization)

Parameters:

strength : float, default=0.

Level of L2 penalization

range : tuple of two int, default=`None`

Range on which the prox is applied. If None then the prox is applied on the whole vector

positive : bool, default=`False`

If True, apply L2 penalization together with a projection onto the set of vectors with non-negative entries

Attributes:

dtype : {'float64', 'float32'}

Type of the arrays used.

Examples using tick.prox.ProxL2Sq