Comments (7)
This looks like a bug. warm_start=True
is not supposed to be faster than warm_start=False
when the estimator is fitted for the first time.
from lightning.
Oops. seems like my mind was clogged with the cv
models in sklearn. Do you want me to have a look, if you confirm that there is something fishy?
from lightning.
I just remembered that the multiclass option is actually only used when penalty='l1/l2'
. The multiclass option is currently silently ignored for other penalties. This is really bad, an exception needs to be raised instead. So your results above are actually for OVR logistic regression. But regardless, there is definitely something fishy regarding training time when warm_start=False
. You can have a look but it's probably a tough bug. I was planning to redesign / simplify how warm_start works in lightning. Perhaps this is a good opportunity.
from lightning.
Okay. I've figured out why. This is because when %timeit
is used in IPython across 1000 loops, it effectively warm starts!
I'm not sure if its a bug in IPython or not. Should the previous attributes be destroyed when %timeit
is used, when doing multiple loops to make them independent of each other, or is the present behavior correct?
from lightning.
I opened a bug report in IPython ipython/ipython#6471. So closing this.
from lightning.
Indeed, good catch.
from lightning.
The consensus has been to print some sort of warning if such a thing happens. I've submitted a PR here, ipython/ipython#6479
from lightning.
Related Issues (20)
- Unsafe screening with CDClassifier? HOT 1
- Forgotten intercept in SGDRegressor HOT 2
- ModuleNotFoundError: No module named 'sklearn.externals.six' HOT 4
- How to pip sklearn-contrib-lightning HOT 2
- 2d errors when passing pandas DataFrame/Series
- Nonnegative penalties actually allowed in CDRegressors HOT 3
- FistaRegressor does not converge for real data HOT 3
- build pb on python 3.9 HOT 1
- Change assert imports HOT 2
- do you have Quantile Regression for spars data after one hot transformation
- do you have Regression for spars categorical big data after one hot transformation
- do you have support vector regression with soft margin and confidence interval ?
- do you have implementation for regression with confidence intervals ?
- Does lightning natively support multi-label HOT 1
- DOC: sometimes the Lasso solution is the same as sklearn, sometimes not HOT 5
- install help
- ENH - Add support of intercept in ``SDCARegressor`` HOT 1
- Why not initialize SAG/SAGA memory with 0 and divide by seen indices so far as in sklearn?
- Missing Support for class-weights specifications to tacke Disproportionate Number of Samples between dependent variable classes
- CDClassifier : error for penalty="l1" and penalty="l2", but no error for penalty="l1/l2" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning.