What template are you using? The results are usually formatted in Engine.scala 
like the Universal Recommender here: 
https://github.com/actionml/universal-recommender/blob/master/src/main/scala/Engine.scala#L65
 
<https://github.com/actionml/universal-recommender/blob/master/src/main/scala/Engine.scala#L65>
 I think you can just add a string ID to each template that tells the version 
that returns results. This seems a bit heavy handed but if it’s the only thing 
you can do—so be it.



On Dec 17, 2016, at 8:00 AM, Lin Amy <[email protected]> wrote:

Because there will be a load-balancer, so I would like to modify the Serving 
results.
I'll try to figure it out, thanks!

Best regards,
Amy

Pat Ferrel <[email protected] <mailto:[email protected]>> 於 
2016年12月17日 週六 上午5:59寫道:
Amy asked: "is there any way to modify the http response for query? (So that I 
can track the query result)"

What do you want to modify? You know which one you queried from the port 
number. The longer answer is that to modify the result or the response body you 
will need to modify the template you are using.



On Dec 16, 2016, at 7:07 AM, Lin Amy <[email protected] 
<mailto:[email protected]>> wrote:

Hello everyone,

I want to do some A/B test on the algorithm, and have found the following 
method:
Run two engines in parallel (with different port of course), with the same 
appid.

However, I want to use some load balance to redirect the traffic from clients 
to the engines, and also tracking the recommendation algorithm (in order to 
analyse the result). And here the question comes: is there any way to modify 
the http response for query? (So that I can track the query result)

Thank you for any advice!

Best regards,
Amy


Reply via email to