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

    https://github.com/apache/spark/pull/8834#discussion_r39936250
  
    --- Diff: python/pyspark/mllib/linalg/__init__.py ---
    @@ -301,11 +301,14 @@ def __reduce__(self):
             return DenseVector, (self.array.tostring(),)
     
         def numNonzeros(self):
    +        """
    +        Number of nonzero elements. This scans all active values and count 
non zeros
    +        """
             return np.count_nonzero(self.array)
     
         def norm(self, p):
             """
    -        Calculte the norm of a DenseVector.
    +        Calculate the norm of a DenseVector.
    --- End diff --
    
    Use `Calculates` instead `Calculate` for API docs


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

Reply via email to