Search Results for: Cotton-seed oil not chemically 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 class trainingdata( val users: rdd[(string, user)], val items: rdd[(string, item)], val rateevents: rdd[rateevent] // modified ) extends serializable { override def tostring = { s"users: [${users.count()} (${users.take(2...
https://predictionio.apache.org/templates/similarproduct/train-with-rate-event/