Repository navigation
Add kmeans support to batch Conn index - #91
Merged
Merged
Conversation
AP6YC
reviewed
Sep 10, 2026
Owner
There was a problem hiding this comment.
I'm good with these changes, but I'll suggest some optimization for another issue/PR. For example, the conn state builds a FuzzyART module and takes all of its options during construction, even if you use means in batch mode. It's a minor note, but worth an optimization feature later on.
Owner
There was a problem hiding this comment.
I'm fine with this test harness for conn.
Owner
There was a problem hiding this comment.
Yeah, this deserves a more elegant api on my side to figure out how to share the same construction and testing interface for conn along with the other cvis. Maybe break out an options object to pass to each cvi that depends on the cvi? I will meditate on this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kmeans was the original approach used in the CONN papers and is highly effective and fast for batch calculations. Fuzzy ART was only introduced for the incremental version. This PR adds kmeans and mini-batch kmeans as optional backends for the batch modes of CONN index.
Additionally, CONN is added to the init.py files of the repo and CVI_info is added to the conn class.