Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/10150#discussion_r49493664 --- Diff: python/pyspark/mllib/clustering.py --- @@ -136,7 +258,10 @@ def predict(self, x): def computeCost(self, rdd): """ Return the K-means cost (sum of squared distances of points to - their nearest center) for this model on the given data. + their nearest center) for this model on the given + data. + + :param point: the point or RDD of points to compute the cost(s). --- End diff -- This is only for RDDs, not single points.
--- 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