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

small_p = 0 prevents code from running #1

Closed
tolgabirdal opened this issue Apr 17, 2017 · 1 comment
Closed

small_p = 0 prevents code from running #1

tolgabirdal opened this issue Apr 17, 2017 · 1 comment

Comments

@tolgabirdal
Copy link

To prevent small_p from being 0, maybe it's better to replace ln. 326 in kmeans_sparsified with:
small_p = max(1, round( SparsityLevel*p2 ));

(similarly ln. 323)

@stephenbeckr
Copy link
Owner

Good idea. I just incorporated the change.

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

2 participants