Re: [scikit-learn] Logistic regression with elastic net regularization

2017-03-14 Thread Olivier Grisel
>From a generalization point of view (test accuracy), the optimal sparsity support should not matter much though, but it can be helpful to find a the optimally sparsest solution for either computational constraints (smaller models with a lower prediction latency) and interpretation of the weights (

Re: [scikit-learn] Logistic regression with elastic net regularization

2017-03-14 Thread Olivier Grisel
Note that SGD is not very good at optimizing finely with a non-smooth penalty (e.g. l1 or elasticnet). The future SAGA solver is going to be much better at finding the optimal sparsity support (although this support is not guaranteed to be stable across re-sampling of the training set if the traini

Re: [scikit-learn] Logistic regression with elastic net regularization

2017-03-14 Thread Stuart Reynolds
Many thanks. On Mon, Mar 13, 2017 at 10:08 AM, Sebastian Raschka wrote: > Hi, Stuart, > I think the only way to do that right now would be through the SGD > classifier, e.g., > > sklearn.linear_model.SGDClassifier(loss='log', penalty='elasticnet' …) > > Best, > Sebastian > > > On Mar 13, 2017, a