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