Github user sethah commented on a diff in the pull request: https://github.com/apache/spark/pull/13557#discussion_r89817603 --- Diff: python/pyspark/ml/clustering.py --- @@ -330,6 +357,20 @@ class KMeans(JavaEstimator, HasFeaturesCol, HasPredictionCol, HasMaxIter, HasTol >>> df = spark.createDataFrame(data, ["features"]) >>> kmeans = KMeans(k=2, seed=1) >>> model = kmeans.fit(df) + >>> summary = model.summary + >>> summary.k + 2 + >>> summary.predictionCol --- End diff -- things like this are better left for the `tests.py` file, since this shows up in the doc and might not be useful to users
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org