nemos.regularizer.Lasso.get_proximal_operator#

Lasso.get_proximal_operator(init_params=None)[source]#

Retrieve the proximal operator for Lasso regularization (L1 penalty).

Parameters:

init_params

Return type:

Callable[[Any, float, float], Tuple[Array, Array]]

Returns:

The proximal operator, applying L1 regularization to the provided parameters. The intercept term is not regularized.