[WIP] Change default convergence params for classes using liblinear (LinearSVM and LogisticRegression) - #13317
Conversation
…ams of LinearSV{C,R} and LogisticRegression
|
@GaelVaroquaux @agramfort All right after several checks I noticed that all solver libraries already have their own default on max_iter and tol (I do have a doubt about the default of max_iter in liblinear though). Hence I suggest the following strategie :
What do you think ? -> just implement a function called in the .fit that maps solvers to tol and max_iter On another subject I see that besides lbfgs, the tol for liblinear, newton-cg are also related to the value of the gradient of the function and not to value of the function. So while I can change that for lbfgs as scipy also expose an ftol, newton-cg and liblinear don't. There is probably some room for improvement there ? |
… the solver. Todo : branching detail for liblinear to select the internal solver, tests for auto value in max_iter and tol for logisticreg and linearsvm, benchmarks to check if solvers default are good, change lbfgs tol for an ftol instead of a pgtol
…benchmarks to check if solvers defaults are good, change lbfgs tol for an ftol instead of a pgtol
|
What's the status on this? |
|
I close as it seems stalled since several years. |
Reference Issues/PRs
Fixes #11536
What does this implement/fix? Explain your changes.
This Pull request is meant to implement an automatic determination of the value of convergence parameters (max_iter and tol).
TODO