scikit-learn-contrib / lightning

Large-scale linear classification, regression and ranking in Python
https://contrib.scikit-learn.org/lightning/
1.73k stars 214 forks source link

[MRG] estimated step size for SAG* objects #42

Closed fabianp closed 8 years ago

fabianp commented 8 years ago

This estimates the step size from the data instead of relying on the user having to specify a step size. The result is that it converges for many cases for which the default step size will not converge, such as multiplying the 20news dataset by 3.

Some remarks:

mblondel commented 8 years ago

Very nice! Thanks!

fabianp commented 8 years ago

I've changed the backport of get_max_squared_sum to use csr_row_norms as suggested by @mblondel . I've also updated the README to reflect this (the import is anyway lazy so lightning should at least import in older versions of sklearn).

mblondel commented 8 years ago

Merging, thank you very much! We can add this for SVRG too but this can be done in another PR.