Skip to content

Commit 1d0c0c0

Browse files
derrickburnsclaude
andcommitted
Format KMedoids.scala
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7a2125a commit 1d0c0c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/scala/com/massivedatascience/clusterer/ml/KMedoids.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,8 @@ class KMedoids(override val uid: String)
224224
*
225225
* Algorithm:
226226
* 1. For each medoid m and each non-medoid point o:
227-
* - Compute cost change if m is swapped with o
228-
* 2. Perform the swap with the largest cost reduction 3. Repeat until no improvement is
229-
* possible or maxIter is reached
227+
* - Compute cost change if m is swapped with o 2. Perform the swap with the largest cost
228+
* reduction 3. Repeat until no improvement is possible or maxIter is reached
230229
*
231230
* @param data
232231
* all data points

0 commit comments

Comments
 (0)