Search Results for: String instruments
engine design as you can see from the quick start, myrecommendation takes a json prediction query, e.g. { "user": "1", "num": 4 }, and return a json predicted result. in myrecommendation/src/main/scala/engine.scala, the query case class defines the format of such query: 1 2 3 4 case class query( user: string
class defines the format of predicted result, such as 1 2 3 4 5 6 {"itemscores":[ {"item":22,"score":4.07}, {"item":62,"score":4.05}, {"item":75,"score":4.04}, {"item":68,"score":3.81} ]} with: 1 2 3 4 5 6 7 8 case class predictedresult( itemscores: array[itemscore] ) case class itemscore( item: string...
https://predictionio.apache.org/templates/recommendation/dase/