Skip to content
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

Spherical k-means with sparse vectors is slow #18

Open
jbasilico opened this issue Jan 24, 2014 · 0 comments
Open

Spherical k-means with sparse vectors is slow #18

jbasilico opened this issue Jan 24, 2014 · 0 comments
Labels

Comments

@jbasilico
Copy link
Member

The dot product is happening in the wrong order for spherical k-means (cosine distance), which causes a loop over the dense vector. It should be over the sparse one.
One potential fix for this is to change the vector classes to prefer looping over a sparse vector rather than a dense one.

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

No branches or pull requests

1 participant