[ 
https://issues.apache.org/jira/browse/SPARK-18268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15640202#comment-15640202
 ] 

Sean Owen commented on SPARK-18268:
-----------------------------------

We don't generally assign issues. You can just work on it.

> ALS.run fail with UnsupportedOperationException if run on an empty ratings RDD
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-18268
>                 URL: https://issues.apache.org/jira/browse/SPARK-18268
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>    Affects Versions: 2.0.1
>            Reporter: Mikael Ståldal
>            Priority: Minor
>
> {{ALS.run(RDD\[Rating\])}} fail with UnsupportedOperationException if run on 
> an empty ratings RDD:
> {code}
> java.lang.UnsupportedOperationException: empty collection
>       at org.apache.spark.rdd.RDD$$anonfun$first$1.apply(RDD.scala:1340) 
> ~[spark-core_2.11-2.0.1.jar:2.0.1]
>       at 
> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
>  ~[spark-core_2.11-2.0.1.jar:2.0.1]
>       at 
> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
>  ~[spark-core_2.11-2.0.1.jar:2.0.1]
>       at org.apache.spark.rdd.RDD.withScope(RDD.scala:358) 
> ~[spark-core_2.11-2.0.1.jar:2.0.1]
>       at org.apache.spark.rdd.RDD.first(RDD.scala:1337) 
> ~[spark-core_2.11-2.0.1.jar:2.0.1]
>       at 
> org.apache.spark.mllib.recommendation.MatrixFactorizationModel.validateFeatures(MatrixFactorizationModel.scala:68)
>  ~[spark-mllib_2.11-2.0.1.jar:2.0.1]
>       at 
> org.apache.spark.mllib.recommendation.MatrixFactorizationModel.<init>(MatrixFactorizationModel.scala:63)
>  ~[spark-mllib_2.11-2.0.1.jar:2.0.1]
>       at org.apache.spark.mllib.recommendation.ALS.run(ALS.scala:279) 
> ~[spark-mllib_2.11-2.0.1.jar:2.0.1]
> {code}
> This also affects {{RDD.train}} and {{RDD.trainImplicit}}.



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