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

    https://github.com/apache/spark/pull/11186#discussion_r52976749
  
    --- Diff: python/pyspark/mllib/recommendation.py ---
    @@ -165,28 +165,32 @@ def productFeatures(self):
         @since("1.4.0")
         def recommendUsers(self, product, num):
             """
    -        Recommends the top "num" number of users for a given product and 
returns a list
    -        of Rating objects sorted by the predicted rating in descending 
order.
    +        Recommends the top "num" number of users for a given product and
    +        returns a list of Rating objects sorted by the predicted rating in
    +        descending order.
             """
             return list(self.call("recommendUsers", product, num))
     
         @since("1.4.0")
         def recommendProducts(self, user, num):
             """
    -        Recommends the top "num" number of products for a given user and 
returns a list
    -        of Rating objects sorted by the predicted rating in descending 
order.
    +        Recommends the top "num" number of products for a given user and
    +        returns a list of Rating objects sorted by the predicted rating in
    +        descending order.
             """
             return list(self.call("recommendProducts", user, num))
     
         def recommendProductsForUsers(self, num):
             """
    -        Recommends top "num" products for all users. The number returned 
may be less than this.
    +        Recommends top "num" products for all users. The number returned 
may be
    --- End diff --
    
    While we're at this, can we say something like `... the number of 
recommendations returned per user may be less than this`


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