Skip to content

Commit

Permalink
Add a test for setParams
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-iskw committed Jul 1, 2015
1 parent 4ff7913 commit 0ae422f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pyspark/ml/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ class KMeans(JavaEstimator, HasFeaturesCol, HasMaxIter, HasSeed):
True
>>> rows[2].prediction == rows[3].prediction
True
>>> kmeans.setParams("features")
Traceback (most recent call last):
...
TypeError: Method setParams forces keyword arguments.
"""

@keyword_only
Expand Down

0 comments on commit 0ae422f

Please sign in to comment.