Closed MechCoder closed 10 years ago
What is your point?
liblinear doesn't implement the same algorithm as lightning...
Liblinear implements the CD + glmnet
right in the same paper? I just wanted to clarify if the new GLMnet is inherently much faster than CDN, or if you think there are places in the lightning
code where we could speed up.
Indeed liblinear uses CD + glmnet. Don't they compare with CD in the paper?
One bottleneck is the computation of logs and exponentials. Using some kind of approximation could result in a big speed up.
lightning uses dataset and loss function abstractions. I am not sure what is the overhead of virtual method calls.
Something else to be careful about is the stopping criterion. If liblinear doesn't use the same as lightning, the meaning of tol
will differ. The only objective way to compare is to plot the objective value over time.
@mblondel I'm not sure if this is meant to be, but I ran a quick few benchmarks.
I get times like these for a grid of 10 Cs from
np.logspace(-4, 4, 10)
time_lightning
time_logistic