-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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