[jira] [Commented] (SPARK-18268) ALS.run fail with UnsupportedOperationException if run on an empty ratings RDD

2016-11-08 Thread JIRA

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

Mikael Ståldal commented on SPARK-18268:


Why not build an empty model?

> 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.(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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-18268) ALS.run fail with UnsupportedOperationException if run on an empty ratings RDD

2016-11-08 Thread Apache Spark (JIRA)

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

Apache Spark commented on SPARK-18268:
--

User 'techaddict' has created a pull request for this issue:
https://github.com/apache/spark/pull/15809

> 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.(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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-18268) ALS.run fail with UnsupportedOperationException if run on an empty ratings RDD

2016-11-05 Thread Sean Owen (JIRA)

[ 
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.(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



[jira] [Commented] (SPARK-18268) ALS.run fail with UnsupportedOperationException if run on an empty ratings RDD

2016-11-05 Thread Aditya (JIRA)

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

Aditya commented on SPARK-18268:


how do you assign an issue?

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