Skip to content

Commit

Permalink
remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
yanboliang committed Jun 25, 2015
1 parent eb12f95 commit 21bae35
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/pyspark/mllib/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ def k(self):

def predict(self, x):
"""Find the cluster to which x belongs in this model."""
if isinstance(x, RDD):
return x.map(lambda v: self.predict(v))

best = 0
best_distance = float("inf")
if isinstance(x, RDD):
Expand Down

0 comments on commit 21bae35

Please sign in to comment.