Open
Conversation
Running the example: ``` Clustering 10000 vectors of dimension 64 into 10 clusters Running simple k-means clustering... Simple k-means completed in 8.759083ms Average quantization error: 2698.03 Running clustering with custom parameters... Sampling a subset of 2560 / 10000 for training Clustering 2560 points in 64D to 10 clusters, redo 3 times, 25 iterations Preprocessing in 0.00 s Outer iteration 0 / 3 Iteration 24 (0.01 s, search 0.00 s): objective=2.69803e+07 imbalance=1.296 nsplit=0 Objective improved: keep new clusters Outer iteration 1 / 3 Iteration 24 (0.01 s, search 0.01 s): objective=3.06187e+07 imbalance=1.357 nsplit=0 Outer iteration 2 / 3 Iteration 24 (0.02 s, search 0.01 s): objective=2.0157e+07 imbalance=1.134 nsplit=0 Objective improved: keep new clusters Advanced clustering completed in 19.593958ms Comparing clustering quality... Average distance to nearest centroid: Simple k-means: 10705.22 Advanced method: 8305.35 Improvement: 22.42% better Time comparison: Simple: 8.759083ms Advanced: 19.593958ms (2.2x slower due to multiple runs) ```
9894a40 to
6fefd6e
Compare
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.
Running the example: