Skip to content

Adding a scalable relaxation of Elkan's pruning algorithm #25

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

disa-mhembere
Copy link

The MTI algorithm is presented in:

Mhembere, D., Zheng, D., Priebe, C.E., Vogelstein, J.T. and Burns, R., 2017, June. knor: A NUMA-optimized in-memory, distributed and semi-external-memory k-means library. In Proceedings of the 26th International Symposium on High-Performance Parallel and Distributed Computing (pp. 67-78). ACM.

I can add Python binding in another PR if necessary

Copy link
Owner

@ghamerly ghamerly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not had time to test this, but I looked at the changes to the common code base and left some comments.

delete [] lower;

if (lower)
delete [] lower;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me why you are making these changes to lower here (and below). I worry about the effects in other files that rely on this base class.

I think that if numLowerBounds == 0, everything should "just work" (i.e. it's okay to allocate and deallocate zero-length array). Further, with this line in particular, if lower == NULL, then it's fine to call delete on it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct! I will update this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran a benchmark using the driver-experiment under valgrind and verified all algorithms produce the correct result (-DMONITOR_ACCURACY) with no leaks reported.

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

Successfully merging this pull request may close these issues.

2 participants