You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by futureage <li...@gmail.com> on 2015/10/20 05:58:04 UTC

why the Rating(user: Int, product: Int, rating: Double)(in MLlib's ALS), the 'user' and 'product' must be Int?

hi, 
i am learning the MLlib's ALS, when i saw the case class Rating(user: Int,
product: Int, rating: Double), i want to know why the 'user' and 'product'
are Int, they are just id, Long or String is not ok? 

thanks



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/why-the-Rating-user-Int-product-Int-rating-Double-in-MLlib-s-ALS-the-user-and-product-must-be-Int-tp25135.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

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