Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Parameter mapping #19

Open
Thomasillo opened this issue Aug 22, 2018 · 0 comments
Open

Parameter mapping #19

Thomasillo opened this issue Aug 22, 2018 · 0 comments

Comments

@Thomasillo
Copy link
Contributor

Following conventions for the objective functions in the ElasticNet are used:
sklearn: of = 1/2N C + \alpha \mu P_1 + 0.5 \alpha (1-\mu) P_2

McConaughy: of = C + \lambda \rho P_1 + \lambda(1-\rho) P_2

here, C is the (squared) two norm of the residuals and P_1 and P_2 are the regularization term.
McConaughy probably also means a factor of 1/N in front of the C, otherwise the amount of regularization would scale with the number of features which doesn't make any sense.

Assuming this factor, the following formulae should be applied when mapping the regularization parameters from sparseregs interface to that of sklearn.

\alpha = \lambda ( 1-\rho/2)
\mu = \rho/(2-\rho)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant