[
https://issues.apache.org/jira/browse/SPARK-18268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-18268:
------------------------------------
Assignee: Apache Spark
> 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
> Assignee: Apache Spark
> 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 {{ALS.train}} and {{ALS.trainImplicit}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]