Search Results for: String instruments
how to modify similar product template to use "rate" event as training data. you can find the complete 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 ) extends serializable...
http://predictionio.apache.org/templates/similarproduct/train-with-rate-event/
how to modify similar product template to use "rate" event as training data. you can find the complete 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 ) extends serializable...
https://predictionio.apache.org/templates/similarproduct/train-with-rate-event/