Re: Items blacklisted in the query made to Elasticsearch by UR

2017-05-03 Thread Pat Ferrel
Sorry, after all this I’m a bit unclear as to what the problem is. Is this the case: 1) You are trying to NOT filter out items the user has seen? 2) You have set “blacklistEvent”: [], in engine.json? 3) You are making user based queries with a user-id only? I’ll try this with a small dataset use

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-04-06 Thread Bruno LEBON
*BTW I assume "user": "069d-8661-453f-8c89-ac50aea0c0d8” has those items in their “facet” history? Otherwise I’m not sure where they’d come from.* Yes I confirm that this user has those items in his facet history. 2017-04-05 18:18 GMT+02:00 Pat Ferrel : > Ok thanks for ruling out a couple th

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-04-05 Thread Pat Ferrel
Ok thanks for ruling out a couple things, I’ll take a look at this. BTW I assume "user": "069d-8661-453f-8c89-ac50aea0c0d8” has those items in their “facet” history? Otherwise I’m not sure where they’d come from. On Apr 5, 2017, at 2:31 AM, Bruno LEBON wrote: Yes, we have pio 0.10.0, the

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-04-05 Thread Bruno LEBON
Yes, we have pio 0.10.0, the UR v 0.5.0 and the blacklistEvents is disabled. We sent this kind of query to Pio { "user": "069d-8661-453f-8c89-ac50aea0c0d8", "num": 11 } The JSON generated for Elasticsearch is: *{"size":11,"query":{"bool":{"should":[{"terms":{"facet":["estag_begin-couleur-noi

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-04-04 Thread Pat Ferrel
Ok, so you are using pio 0.10.0, the UR v 0.5.0 and have disabled the blacklistEvents as shown below? Then when you query for a user you are not getting all items returned? Can you share an example of the query you send to pio and the JSON that is created for Elasticsearch? On Apr 4, 2017, a

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-04-04 Thread Bruno LEBON
Hi, Sorry my bad, I searched for the piece of code on the internet and your repository came first. I had the right repo in prod ( https://github.com/actionml/universal-recommender), I doubled check. Sorry for the misunderstanding. We still have the same problem. Here the engine.json we use: *{*

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-03-31 Thread Pat Ferrel
you should not be using code from that repo. See the pio template gallery, it points to the correct template. My personal version is for experimental branches. The repo is here: https://github.com/actionml/universal-recommender The function i

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-03-31 Thread Bruno LEBON
Hi, Thanks for your answer. We tried that already but it doesnt change anything, we still have blacklisted items (primary events mainly or only from what I see). I think the piece of code in charge of blacklisting is this one: (from here https://github.com/pferrel/template-scala-parallel-universa

Re: Items blacklisted in the query made to Elasticsearch by UR

2017-03-30 Thread Pat Ferrel
"blacklistEvents": [[]], should be "blacklistEvents": [], On Mar 30, 2017, at 8:57 AM, Bruno LEBON wrote: Hello, We test the universal recommender on a cluster made following the tutorial from actionML. Once the build/train/deploy is done we send PIO a request to get recommendation. For exam

Items blacklisted in the query made to Elasticsearch by UR

2017-03-30 Thread Bruno LEBON
Hello, We test the universal recommender on a cluster made following the tutorial from actionML. Once the build/train/deploy is done we send PIO a request to get recommendation. For example: *curl -H "Content-Type: application/json" -d '{ "user": "4e810ef4-977a-4f04-b585-cf2c2996ec93", "num": 11 }