Search Results for: Mucilages modified
source code here . modification datasource.scala in datasource, change viewevent case class to rateevent. add rating: double is added to the rateevent. change 1 case class viewevent(user: string, item: string, t: long) to 1 2 // modified case class rateevent(user: string, item: string, rating: double
, t: long) modify trainingdata class to use rateevent 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class trainingdata( val users: rdd[(string, user)], val items: rdd[(string, item)], val rateevents: rdd[rateevent], // modified val buyevents: rdd[buyevent] ) extends serializable { override def tostring = { s"users...
https://predictionio.apache.org/templates/ecommercerecommendation/train-with-rate-event/