Search Results for: String instruments
the engine design as you can see from the quick start, myrecommendation takes a json prediction query, e.g. { "user": " ", "num": }, and return a json predicted result. in myrecommendation/src/main/scala/engine.scala, the query case class defines the format of such query: case class query( user: string
, num: int ) the predictedresult case class defines the format of predicted result, such as {"itemscores":[ {"item": ,"score": }, {"item": ,"score": }, {"item": ,"score": }, {"item": ,"score": } ]} with: case class predictedresult( itemscores: array[itemscore] ) case class itemscore( item: string, score...
http://predictionio.apache.org/templates/recommendation/dase/
the engine design as you can see from the quick start, myrecommendation takes a json prediction query, e.g. { "user": " ", "num": }, and return a json predicted result. in myrecommendation/src/main/scala/engine.scala, the query case class defines the format of such query: case class query( user: string
, num: int ) the predictedresult case class defines the format of predicted result, such as {"itemscores":[ {"item": ,"score": }, {"item": ,"score": }, {"item": ,"score": }, {"item": ,"score": } ]} with: case class predictedresult( itemscores: array[itemscore] ) case class itemscore( item: string, score...
https://predictionio.apache.org/templates/recommendation/dase/