Xiangrui Meng created SPARK-4396:
------------------------------------

             Summary: Support lookup by index in Rating
                 Key: SPARK-4396
                 URL: https://issues.apache.org/jira/browse/SPARK-4396
             Project: Spark
          Issue Type: New Feature
          Components: MLlib, PySpark
            Reporter: Xiangrui Meng
            Assignee: Xiangrui Meng


In PySpark, ALS can take an RDD of (user, product, rating) tuples as input. 
However, model.predict outputs an RDD of Rating. So on the input side, users 
can use r[0], r[1], r[2], while on the output side, users have to use r.user, 
r.product, r.rating. We should allow lookup by index in Rating.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to