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 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...
https://predictionio.apache.org/templates/similarproduct/train-with-rate-event/