Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13291#discussion_r64741733
  
    --- Diff: python/pyspark/ml/clustering.py ---
    @@ -227,15 +242,15 @@ class KMeans(JavaEstimator, HasFeaturesCol, 
HasPredictionCol, HasMaxIter, HasTol
         .. versionadded:: 1.5.0
         """
     
    -    k = Param(Params._dummy(), "k", "number of clusters to create",
    +    k = Param(Params._dummy(), "k", "The number of clusters to create. 
Must be > 1.",
                   typeConverter=TypeConverters.toInt)
         initMode = Param(Params._dummy(), "initMode",
    -                     "the initialization algorithm. This can be either 
\"random\" to " +
    +                     "The initialization algorithm. This can be either 
\"random\" to " +
                          "choose random points as initial cluster centers, or 
\"k-means||\" " +
                          "to use a parallel variant of k-means++",
                          typeConverter=TypeConverters.toString)
    -    initSteps = Param(Params._dummy(), "initSteps", "steps for k-means 
initialization mode",
    -                      typeConverter=TypeConverters.toInt)
    +    initSteps = Param(Params._dummy(), "initSteps", "The number of steps 
for k-means|| " +
    --- End diff --
    
    We just sync the param docs rather than API docs. Actually the Python API 
docs for params are missing for all classes. I think we should add them in the 
next release.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to