Github user coderh commented on the pull request: https://github.com/apache/spark/pull/597#issuecomment-45898782 Ok, I have found the error in my metric. ``` val itemFactors = model.productFeatures.collect() ``` This line is for creating a item-factor matrix, the problem is that item factors are not ordered by item id when collecting them, which leads to a wrong matrix, that's y the result is non sense. Adding a sortBy(_._1), like ``` val itemFactors = model.productFeatures.collect().sortBy(_._1) ``` give a EPR like 9%(in sample), 10%(out of sample) Implicit ALS works. Thanks.
--- 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. ---