Search Results for: String instruments
can see from the quick start, mysimilarproduct takes a json prediction query, e.g. { "items": ["i1"], "num": 4 }, and return a json predicted result. in mysimilarproduct/src/main/scala/engine.scala, the query case class defines the format of such query: 1 2 3 4 5 6 7 case class query( items: list[string
], num: int, categories: option[set[string]], whitelist: option[set[string]], blacklist: option[set[string]] ) the predictedresult case 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...
https://predictionio.apache.org/templates/similarproduct/dase/