Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/13291#discussion_r64946896
--- 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 --
interesting, I hadn't noticed the doc params were different than the
scaladoc for these params (normally they are more in sync yes?).
---
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]