8000 TfidfVectorizer insists on np.float64 · Issue #6468 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

TfidfVectorizer insists on np.float64 #6468

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

Closed
isacarnekvist opened this issue Feb 29, 2016 · 2 comments
Closed

TfidfVectorizer insists on np.float64 #6468

isacarnekvist opened this issue Feb 29, 2016 · 2 comments

Comments

@isacarnekvist
Copy link

I tried fixing it but it ended up in an error on line 1288 in sklearn/preprocessing/data.py in normalize() because the function inplace_csr_row_normalize_l2(X) didn't seem to be able to handle float32

@ssaeger
Copy link
ssaeger commented Feb 29, 2016

inplace_csr_row_normalize_l2 is implemented in cython and can only handle double (np.float64) at the moment. To handle float32 we need to use fused types of cython, which is not implemented yet.

@rth
Copy link
Member
rth commented Aug 31, 2017

This issue should have been fixed in #6785 with the corresponding update available in the newly released 0.19 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0