You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Introduce a solver="auto" for LogisticRegression #5736
Logistic regression has many different possible solvers. Choosing the best is difficult and requires expert knowledge.
I think that it would be useful to introduce a 'solver="auto"' that tries to make a good guess on the best approach. It would have to be tuned using heaving benchmarks on many different problems.
A good place to start is using the script bench_rcv1_logreg_convergence.py in benchmarks, and applying it to a variety of problems.
@mblondel I was thinking that it is pretty close to meta-learning
@racaljk not really... your dataset for training the meta learner must "just" be large enough ;)
I think it's a good idea. Would you include only the ones that are in LogisticRegression, though?
The benchmark that possibly inspired this issue was comparing against vw, for which SGDClassifier is a closer match.
Sometimes we make classes per model, sometimes per optimizer.
SGDClassifier implements one solver for many models / losses.
LogisticRegression implements one loss with many optimizers.
I think the heuristic we use is mostly "do they share parameters", though that is not followed for ExtraTreesX and RandomForestX, which are simple two classes for different default parameters, so here classes are a shortcut for sets of default values.
Having an "auto" solver for LogisticRegression (and I think also in LinearSVC for "dual") is a step in the right direction. Not including SGDClassifier is a bit problematic, though.
Activity
dohmatob commentedon Nov 5, 2015
Good idea.
MechCoder commentedon Nov 5, 2015
+1
FedericoV commentedon Nov 5, 2015
I think that's an excellent idea.
What are the things that have to be taken into account?
After that:
Anything else that jumps to mind?
mblondel commentedon Nov 6, 2015
Let's build a classifier which predicts the best classifier from the data characteristics!
GaelVaroquaux commentedon Nov 6, 2015
Multi colinearity will be expansive to estimate, I fear. Unless someone has a good idea (maybe based on a randomized PCA very low rank.
FedericoV commentedon Nov 6, 2015
We should obviously use this very efficient implementation: http://www.oneweirdkerneltrick.com/rank.pdf :p
giorgiop commentedon Nov 6, 2015
+1
y1yang0 commentedon Nov 8, 2015
@mblondel but it's a recursive problem
amueller commentedon Nov 9, 2015
@mblondel I was thinking that it is pretty close to meta-learning
@racaljk not really... your dataset for training the meta learner must "just" be large enough ;)
I think it's a good idea. Would you include only the ones that are in
LogisticRegression, though?The benchmark that possibly inspired this issue was comparing against vw, for which SGDClassifier is a closer match.
Sometimes we make classes per model, sometimes per optimizer.
SGDClassifier implements one solver for many models / losses.
LogisticRegression implements one loss with many optimizers.
I think the heuristic we use is mostly "do they share parameters", though that is not followed for ExtraTreesX and RandomForestX, which are simple two classes for different default parameters, so here classes are a shortcut for sets of default values.
Having an "auto" solver for LogisticRegression (and I think also in LinearSVC for "dual") is a step in the right direction. Not including SGDClassifier is a bit problematic, though.
amueller commentedon Jun 8, 2020
wanted to link this to #14269 which is basically the same for
Ridge