-
-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add float32 support for SGDClassifier and SGDRegressor #5776
Comments
PR welcome ;) One of the reasons not to do that was the explosion in the generated C code, but I think with #5492 we need to be somewhat less careful about that. |
#13243 implemented float32 support for |
@OmarManzoor: you might be interested in this slightly harder Cython issue. |
@jjerphan Thank you for suggesting. |
@jjerphan Do we need to change the _sgd_fast.pxd file in relation to this? On checking its usages it is mainly being used inside the _sag_fast module which I think already supports float32 and float64. |
On further investigation I don't think we need to change this file. |
Hi,
I was wondreing why
sklearn
does not allow me to specify thedtype
I'd like to use.I'm working with rather large dataset, which fits into my RAM as float32, but when I'm trying to train a simple SGD on it, the model tries to copy my data into float64, causing MemoryError.
I can change this in my local sklearn build, but I guess there is a good reason why this is not a free parameter?
The text was updated successfully, but these errors were encountered: