spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-15318) spark.ml Collaborative Filtering example does not work in spark-shell
Date Tue, 17 May 2016 15:51:13 GMT

     [ https://issues.apache.org/jira/browse/SPARK-15318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Owen resolved SPARK-15318.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 13110
[https://github.com/apache/spark/pull/13110]

> spark.ml Collaborative Filtering example does not work in spark-shell
> ---------------------------------------------------------------------
>
>                 Key: SPARK-15318
>                 URL: https://issues.apache.org/jira/browse/SPARK-15318
>             Project: Spark
>          Issue Type: Bug
>          Components: ML
>            Reporter: Miao Wang
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> copy & paste example in ml-collaborative-filtering.html into spark-shell, we see
the following errors.
> {code}
> scala> case class Rating(userId: Int, movieId: Int, rating: Float, timestamp: Long)
> defined class Rating
> scala> object Rating {
>      |   def parseRating(str: String): Rating = {
>      |     val fields = str.split("::")
>      |     assert(fields.size == 4)
>      |     Rating(fields(0).toInt, fields(1).toInt, fields(2).toFloat, fields(3).toLong)
>      |   }
>      | }
> <console>:29: error: Rating.type does not take parameters
>            Rating(fields(0).toInt, fields(1).toInt, fields(2).toFloat, fields(3).toLong)
>                  ^
> {code}
> In standard scala repl, it has the same error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message