GitHub user mengxr opened a pull request:

    https://github.com/apache/spark/pull/3261

    [SPARK-4396] allow lookup by index in Python's Rating

    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.
    
    @davies

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mengxr/spark SPARK-4396

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3261.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3261
    
----
commit d3bd7d41fa1623e5eb368bc6af3711769d1a27e7
Author: Xiangrui Meng <[email protected]>
Date:   2014-11-14T02:51:20Z

    allow lookup by index in Python's Rating

----


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