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

Reduce memory use #3

Open
danieldk opened this issue Sep 4, 2019 · 0 comments
Open

Reduce memory use #3

danieldk opened this issue Sep 4, 2019 · 0 comments
Labels
Feature New feature or request

Comments

@danieldk
Copy link
Member

danieldk commented Sep 4, 2019

Currently, we are computing the distances between each instance and each cluster centroid using a matrix multiplication of both matrices. This requires n_instances x n_centroids memory. When more than one thread is used, we have multiple such matrices in flight, resulting in large memory use.

Alternatively, we could compute the centroid distances per instance. This requires far less memory, but is more CPU intensive.

The reductive API should offer both approaches.

@danieldk danieldk added the Feature New feature or request label Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Development

No branches or pull requests

1 participant