Skip to content

Commit 5d24618

Browse files
committed
Improve comments, show output of unit tests
1 parent 891cea1 commit 5d24618

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

python-distributed-kmeans/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY distributed_kmeans.py /src/distributed_kmeans.py
1010
COPY tests/unit /src/tests/
1111

1212
WORKDIR /src
13-
RUN pytest tests/
13+
RUN pytest tests/ -x --ff --capture=no
1414

1515

1616
FROM hbpmip/python-mip-sklearn:latest

python-distributed-kmeans/distributed_kmeans.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
@utils.catch_user_error
6868
def intermediate_kmeans():
69-
"""Calculate kNN locally."""
69+
"""Calculate k-Means locally."""
7070
# Read inputs
7171
logging.info("Fetching data...")
7272
inputs = io_helper.fetch_data()
@@ -104,7 +104,7 @@ def intermediate_kmeans():
104104
num_iter = 0
105105
not_converged = True
106106

107-
# Run kNN locally
107+
# Run k-Means locally
108108
# Have each site compute k initial clusters locally
109109
local_centroids = local.initialize_own_centroids(X, k)
110110

0 commit comments

Comments
 (0)