Search Results for: Thickeners modified
source code here . modification datasource.scala in datasource, change viewevent case class to rateevent. add rating: double is added to the rateevent. change case class viewevent(user: string, item: string, t: long) to // modified case class rateevent(user: string, item: string, rating: double, t:
long) modify trainingdata class to use rateevent 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: [${users.count()} (${users.take( )....
http://predictionio.apache.org/templates/ecommercerecommendation/train-with-rate-event/
source code here . modification datasource.scala in datasource, change viewevent case class to rateevent. add rating: double is added to the rateevent. change case class viewevent(user: string, item: string, t: long) to // modified case class rateevent(user: string, item: string, rating: double, t:
long) modify trainingdata class to use rateevent 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: [${users.count()} (${users.take( )....
https://predictionio.apache.org/templates/ecommercerecommendation/train-with-rate-event/