where \(\alpha\) is the regularizer strength, and \(\lambda\) is the regularizer ratio.
The regularizer ratio controls the balance between L1 (Lasso) and L2 (Ridge)
regularization, where \(\lambda = 0\) is equivalent to Ridge regularization and
\(\lambda = 1\) is equivalent to Lasso regularization.
This class equips models with the Elastic Net proximal operator and the
Elastic Net penalized loss function.
This uses PEP-487 [1] to set the set_{method}_request methods. It
looks for the information available in the set default values which are
set using __metadata_request__* class attributes, or inferred
from method signatures.
The __metadata_request__* class attributes are used when a method
does not explicitly accept a metadata through its arguments or if the
developer would like to specify a request value for those metadata
which are different from the default None.
The method works on simple estimators as well as on nested objects
(such as Pipeline). The latter have
parameters of the form <component>__<parameter> so that it’s
possible to update each component of a nested object.