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

    https://github.com/apache/spark/pull/5647#discussion_r29283073
  
    --- Diff: python/pyspark/mllib/clustering.py ---
    @@ -95,6 +106,13 @@ def predict(self, x):
                     best_distance = distance
             return best
     
    +    def computeCost(self, rdd):
    +        """Return the K-means cost (sum of squared distances of points to 
their nearest center) for this
    --- End diff --
    
    python style (newline for long doc strings + shorter doc lines <= 72 chars 
in length following PEP 8):
    ```
    """
    Return the K-means cost (sum of squared distances of points to their
    nearest center) for this model on the given data.
    """
    ```


---
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