Search Results for: String instruments
modification can be further simplified if the support of this case is not needed. 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 val buyevents: rdd...
http://predictionio.apache.org/templates/ecommercerecommendation/train-with-rate-event/
modification can be further simplified if the support of this case is not needed. 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 val buyevents: rdd...
https://predictionio.apache.org/templates/ecommercerecommendation/train-with-rate-event/