Skip to content

Commit

Permalink
Fix progress bar warning for clusters with noise extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
kno10 committed Jul 4, 2024
1 parent 82fbab3 commit 41f418c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public Clustering<Model> run() {
LOG.warning("Could not find a result with exactly " + numCl + " clusters (+ noise), generating " + bestCl + " clusters instead.");
}

progress = LOG.isVerbose() ? new FiniteProgress("Performing cluster merges", bestOff, LOG) : null;
progress = LOG.isVerbose() ? new FiniteProgress("Performing cluster merges", bestOff + 1, LOG) : null;
Int2IntOpenHashMap leafMap = new Int2IntOpenHashMap(merges.size());
leafMap.defaultReturnValue(-1);
ArrayList<ModifiableDBIDs> clusterMembers = new ArrayList<>(merges.size() - bestCl + 2);
Expand Down

0 comments on commit 41f418c

Please sign in to comment.