Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Ordentlich <[email protected]>
  • Loading branch information
eordentlich committed Dec 30, 2023
1 parent 7aae4c2 commit 4868fa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/tests/test_kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ def test_kmeans_basic(gpu_number: int, tmp_path: str) -> None:
.map(lambda row: (row,))
.toDF(["features"])
)
kmeans = KMeans(num_workers=gpu_number, n_clusters=2).setFeaturesCol("features").setSeed(0)
kmeans = (
KMeans(num_workers=gpu_number, n_clusters=2)
.setFeaturesCol("features")
.setSeed(0)
)

def assert_kmeans_model(model: KMeansModel) -> None:
assert len(model.cluster_centers_) == 2
Expand Down

0 comments on commit 4868fa4

Please sign in to comment.