Andy, can you comment on this? Seems like the l1_ratio is indeed not
correct - code is a bit confusing since we change rho -> l1_ratio -> rho
again... We should open an issue for that.
2013/7/2 Mark Levy <[email protected]>
> Hi there,
>
> In the docstring of SGDRegressor it says "l1_ratio=0 corresponds to L2
> penalty, l1_ratio=1 to L1".
> But looking at the implementation, self.l1_ratio is passed as the value of
> the rho argument to plain_sgd(),
> and there I see:
>
> if penalty_type == L2:
> rho = 1.0
> elif penalty_type == L1:
> rho = 0.0
>
> Is there some confusion here, aside from in my head?
>
> Thanks!
>
> Mark
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
--
Peter Prettenhofer
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general