[
https://issues.apache.org/jira/browse/SPARK-15318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen updated SPARK-15318:
------------------------------
Assignee: Miao Wang
Component/s: Examples
> 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: Examples, ML
> Reporter: Miao Wang
> Assignee: 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: [email protected]
For additional commands, e-mail: [email protected]