Skip to content

Fixes for Betula Lloyd k-means#118

Merged
kno10 merged 3 commits intoelki-project:mainfrom
andiwg:fix_betula_lloyd_k_means
Oct 10, 2025
Merged

Fixes for Betula Lloyd k-means#118
kno10 merged 3 commits intoelki-project:mainfrom
andiwg:fix_betula_lloyd_k_means

Conversation

@andiwg
Copy link
Member

@andiwg andiwg commented Oct 7, 2025

This fixes the incorrect usage of the naive flag. The previous version did only disregard the weight when initializing the result arrays.

It also adds missing timings that are present for other k-means algorithms.

@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 52.40%. Comparing base (550de99) to head (a6d3162).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...java/elki/clustering/kmeans/BetulaLloydKMeans.java 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #118      +/-   ##
============================================
- Coverage     52.41%   52.40%   -0.01%     
+ Complexity    12833    12832       -1     
============================================
  Files          1846     1846              
  Lines         93979    93981       +2     
  Branches      17468    17468              
============================================
- Hits          49256    49252       -4     
- Misses        40397    40400       +3     
- Partials       4326     4329       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kno10 kno10 merged commit cc87be3 into elki-project:main Oct 10, 2025
6 checks passed
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