Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DEA7A200B86 for ; Sun, 18 Sep 2016 20:04:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DD98A160AC3; Sun, 18 Sep 2016 18:04:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AA262160A8C for ; Sun, 18 Sep 2016 20:04:04 +0200 (CEST) Received: (qmail 77576 invoked by uid 500); 18 Sep 2016 18:03:58 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 77565 invoked by uid 99); 18 Sep 2016 18:03:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2016 18:03:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7B0B41A06A7 for ; Sun, 18 Sep 2016 18:03:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.43 X-Spam-Level: * X-Spam-Status: No, score=1.43 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id nSSEAxRw-sjO for ; Sun, 18 Sep 2016 18:03:56 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id BCF695F30E for ; Sun, 18 Sep 2016 18:03:55 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id w204so128492177qka.0 for ; Sun, 18 Sep 2016 11:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ulKToCI1ZdPpwag6zC0qmCPaY3g90w7KqUEwwKP/1rE=; b=gLl/IWn1LyYPPm1AyxK5/ShJOEEMLcRKSH28W4WC7pglMbFCF0Kx7BejkZwPf64zxi pf5RIEzeRsbPNryb8Y88SeAfFgTWo4h73oVyfz5XK0K4gyshBnUsVsdToLdTKqeBYEw4 OmyOHToD5rJ8C2vZNk9RqD39FtOiaK1q5pBIkhxonrYiwWK7VVnvemETzHlYxaltLLPh hp0tp9v4Ts0gPuMfOJFh1O6J9zJ94FYDJoXvTY5+5+Lxjw1I4IlYP96Y6inLRqM4q+AH 740BS/DZcs0ZrcugA33bc6eWzqeLDnU8oUTvnBnxji4uwx98+Z6MdWDYu2v/AnQB38Dl wCqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ulKToCI1ZdPpwag6zC0qmCPaY3g90w7KqUEwwKP/1rE=; b=L0LslTraEcfxpg9OhrzNnMEL5De6JrF1uT8iQoilH34Xvc2WUIxmsl4gGHBFz6p26w e+AFOdYatwKoQYcJkiY9/favCLIhG2NCV6PVvJ77tIdapQ2v8hqtWQQxS1E1Xb4rcqZH M88V3Z8cuj1OJRF6ZHBJj6jbnVzbIy02sRbmRSrod8gViiOW7QmmARIBOZGyYRyFWQEU 0Gi+aA2J4A2F7rNM9d8fmItG7Mfa6V5s3lm4y3r+ejPO+K9984x3DWyJUiLMlNJw1Zot 5v2JbDnsd0VZrjX1t5m0+xnHC6/M5YR8pnjALJyT8ntecke2JgfvF37aPFOWi/jj/TfH c8lA== X-Gm-Message-State: AE9vXwOw6wbUNQT20SjfLAgv+nppjltdYM0Ab0aCyQKkGM7jdTFPyV0Hnh0IzbbNXf9wfdiD+cLbWzF2sJxtjw== X-Received: by 10.55.140.135 with SMTP id o129mr25354777qkd.119.1474221829061; Sun, 18 Sep 2016 11:03:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.38.196 with HTTP; Sun, 18 Sep 2016 11:03:28 -0700 (PDT) From: Malay Tripathi Date: Sun, 18 Sep 2016 11:03:28 -0700 Message-ID: Subject: PIO 0.9.5 and UR 0.2.3 : Search event filtering To: user@predictionio.incubator.apache.org Content-Type: multipart/mixed; boundary=001a114eafec71512b053ccc044b archived-at: Sun, 18 Sep 2016 18:04:06 -0000 --001a114eafec71512b053ccc044b Content-Type: multipart/alternative; boundary=001a114eafec715125053ccc0449 --001a114eafec715125053ccc0449 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Will very much appreciate any response! I am using "purchase" as primary event & "search term" as secondary event in below set of data. (Only data i uploaded in engine & trained)- I understand- Item 2851561,2929427 and 2351393 are higher score because both user 101 & 102 purchased same item 2562459. (primary event relation) Item 2748084,2859418 follows because they were purchased by user 103 and both user 102 & 103 searched for"BELTS BAG=E2=80=9D (secondary event relati= on) Followed by 289818 & 2900542 with score 0 because of no relation. BUT I was expecting that if I use search term =E2=80=9CNINE WEST NOLYN=E2= =80=9D with user 102 then it would increase the score of 289818 & 2900542 move them up in response because user 104 also searched for =E2=80=9CNINE WEST NOLYN=E2=80= =9D and purchased 289818 & 2900542, hence a stronger relationship than user 101 purchased or event relationship with user 103. Recommendation requests- A3837044:bin m828420$ curl -H "Content-Type: application/json" -d '{"user": "102"}' http://localhost:8000/queries.json {"itemScores":[{"item":"2851561","score":0.4863930344581604},{"item":"29294= 27","score":0.3595937192440033},{"item":"2351393","score":0.165280371904373= 17},{"item":"2748084","score":0.039376020431518555},{"item":"2859418","scor= e":0.039376020431518555},{"item":"2900542","score":0.0},{"item":"2898183","= score":0.0}]} A3837044:bin m828420$ curl -H "Content-Type: application/json" -d '{"user": "102","search":"BELTS BAG"}' http://localhost:8000/queries.json {"itemScores":[{"item":"2851561","score":0.4863930344581604},{"item":"29294= 27","score":0.3595937192440033},{"item":"2351393","score":0.165280371904373= 17},{"item":"2748084","score":0.039376020431518555},{"item":"2859418","scor= e":0.039376020431518555},{"item":"2900542","score":0.0},{"item":"2898183","= score":0.0}]} A3837044:bin m828420$ curl -H "Content-Type: application/json" -d '{"user": "102","search":"NINE WEST NOLYN"}' http://localhost:8000/queries.jso {"itemScores":[{"item":"2851561","score":0.4863930344581604},{"item":"29294= 27","score":0.3595937192440033},{"item":"2351393","score":0.165280371904373= 17},{"item":"2748084","score":0.039376020431518555},{"item":"2859418","scor= e":0.039376020431518555},{"item":"2900542","score":0.0},{"item":"2898183","= score":0.0}]} Data I trained on- {"event":"purchase","entityType":"user","entityId":"101","targetEntityType"= :"item","targetEntityId":"2562459","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"101","targetEntityType":"= item","targetEntityId":"SHOES","properties":{},"eventTime":"2016-09-04T12:0= 0:00.000-06:00"} {"event":"search","entityType":"user","entityId":"101","targetEntityType":"= item","targetEntityId":"BAGS","properties":{},"eventTime":"2016-09-04T12:00= :00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"101","targetEntityType"= :"item","targetEntityId":"2929427","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"101","targetEntityType"= :"item","targetEntityId":"2351393","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"101","targetEntityType"= :"item","targetEntityId":"2851561","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"102","targetEntityType"= :"item","targetEntityId":"2837836","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"102","targetEntityType":"= item","targetEntityId":"SHOES","properties":{},"eventTime":"2016-09-04T12:0= 0:00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"102","targetEntityType"= :"item","targetEntityId":"2562459","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"102","targetEntityType":"= item","targetEntityId":"BELTS BAG","properties":{},"eventTime":"2016-09-04T12:00:00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"103","targetEntityType"= :"item","targetEntityId":"2748084","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"103","targetEntityType":"= item","targetEntityId":"BELTS BAG","properties":{},"eventTime":"2016-09-04T12:00:00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"103","targetEntityType"= :"item","targetEntityId":"2859418","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"103","targetEntityType":"= item","targetEntityId":"BAG","properties":{},"eventTime":"2016-09-04T12:00:= 00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"104","targetEntityType"= :"item","targetEntityId":"2898183","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"104","targetEntityType":"= item","targetEntityId":"BAG","properties":{},"eventTime":"2016-09-04T12:00:= 00.000-06:00"} {"event":"purchase","entityType":"user","entityId":"104","targetEntityType"= :"item","targetEntityId":"2900542","properties":{},"eventTime":"2016-05-22T= 12:00:00.000-06:00"} {"event":"search","entityType":"user","entityId":"104","targetEntityType":"= item","targetEntityId":"NINE WEST NOLYN","properties":{},"eventTime":"2016-09-06T12:00:00.000-06:00"} --001a114eafec715125053ccc0449 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Will very much appreciate any respo= nse!

I am using "purchase&qu= ot; as primary event & "search term" as secondary event in be= low set of data. (Only data i uploaded in engine & trained)-

=

I understand-

Item 2851561,2= 929427 and 2351393 are higher score because both user 101 & 102 purchas= ed same item 2562459. (primary event relation)

Ite= m 2748084,2859418 follows because they were purchased by user 103 and both = user 102 & 103 searched for"BELTS BAG=E2=80=9D (secondary event re= lation)

Followed by 289818 & 2900542 with scor= e 0 because of no relation.


BUT I was expecting that if I use search term =E2=80=9CNINE WEST NO= LYN=E2=80=9D with user 102 then it would =C2=A0increase the score of 289818= & 2900542 move them up in response because user 104 also searched for = =E2=80=9CNINE WEST NOLYN=E2=80=9D and purchased 289818 & 2900542, hence= a stronger relationship than user 101 purchased or event relationship with= user 103.


Recommend= ation requests-

A3837044:bin m828420$ curl -H &quo= t;Content-Type: application/json" -d '{"user": "102= "}' http://localhos= t:8000/queries.json

{"itemScores":[{= "item":"2851561","score":0.4863930344581604},= {"item":"2929427","score":0.3595937192440033}= ,{"item":"2351393","score":0.1652803719043731= 7},{"item":"2748084","score":0.03937602043151= 8555},{"item":"2859418","score":0.03937602043= 1518555},{"item":"2900542","score":0.0},{&quo= t;item":"2898183","score":0.0}]}

A3837044:bin m828420$ curl -H "Content-Type: application/json&= quot; -d '{"user": "102","search":"B= ELTS BAG"}' http://= localhost:8000/queries.json

{"itemScores&= quot;:[{"item":"2851561","score":0.4863930344= 581604},{"item":"2929427","score":0.359593719= 2440033},{"item":"2351393","score":0.16528037= 190437317},{"item":"2748084","score":0.039376= 020431518555},{"item":"2859418","score":0.039= 376020431518555},{"item":"2900542","score":0.= 0},{"item":"2898183","score":0.0}]}=C2=A0

=


A3837044:bin m828420$ c= url -H "Content-Type: application/json" -d '{"user"= : "102","search":"NINE WEST NOLYN"}' http://localhost:8000/queries.jso=

{"itemScores":[{"item":&q= uot;2851561","score":0.4863930344581604},{"item":&= quot;2929427","score":0.3595937192440033},{"item":= "2351393","score":0.16528037190437317},{"item"= ;:"2748084","score":0.039376020431518555},{"item&q= uot;:"2859418","score":0.039376020431518555},{"ite= m":"2900542","score":0.0},{"item":"= 2898183","score":0.0}]}


Data I trained on-

{"event":"purc= hase","entityType":"user","entityId":&qu= ot;101","targetEntityType":"item","targetEnti= tyId":"2562459","properties":{},"eventTime&qu= ot;:"2016-05-22T12:00:00.000-06:00"}

{&q= uot;event":"search","entityType":"user",= "entityId":"101","targetEntityType":"ite= m","targetEntityId":"SHOES","properties"= :{},"eventTime":"2016-09-04T12:00:00.000-06:00"}

{"event":"search","entityType&q= uot;:"user","entityId":"101","targetEnti= tyType":"item","targetEntityId":"BAGS",&= quot;properties":{},"eventTime":"2016-09-04T12:00:00.00= 0-06:00"}

{"event":"purchase&q= uot;,"entityType":"user","entityId":"101= ","targetEntityType":"item","targetEntityId&q= uot;:"2929427","properties":{},"eventTime":&q= uot;2016-05-22T12:00:00.000-06:00"}

{"ev= ent":"purchase","entityType":"user",&quo= t;entityId":"101","targetEntityType":"item&qu= ot;,"targetEntityId":"2351393","properties":{= },"eventTime":"2016-05-22T12:00:00.000-06:00"}

{"event":"purchase","entityType&q= uot;:"user","entityId":"101","targetEnti= tyType":"item","targetEntityId":"2851561"= ;,"properties":{},"eventTime":"2016-05-22T12:00:00= .000-06:00"}

{"event":"purchas= e","entityType":"user","entityId":"= 102","targetEntityType":"item","targetEntityI= d":"2837836","properties":{},"eventTime"= :"2016-05-22T12:00:00.000-06:00"}

{"= ;event":"search","entityType":"user",&qu= ot;entityId":"102","targetEntityType":"item&q= uot;,"targetEntityId":"SHOES","properties":{}= ,"eventTime":"2016-09-04T12:00:00.000-06:00"}

{"event":"purchase","entityType&qu= ot;:"user","entityId":"102","targetEntit= yType":"item","targetEntityId":"2562459"= ,"properties":{},"eventTime":"2016-05-22T12:00:00.= 000-06:00"}

{"event":"search&q= uot;,"entityType":"user","entityId":"102= ","targetEntityType":"item","targetEntityId&q= uot;:"BELTS BAG","properties":{},"eventTime":= "2016-09-04T12:00:00.000-06:00"}

{"= event":"purchase","entityType":"user",&q= uot;entityId":"103","targetEntityType":"item&= quot;,"targetEntityId":"2748084","properties"= :{},"eventTime":"2016-05-22T12:00:00.000-06:00"}

{"event":"search","entityType&q= uot;:"user","entityId":"103","targetEnti= tyType":"item","targetEntityId":"BELTS BAG&qu= ot;,"properties":{},"eventTime":"2016-09-04T12:00:= 00.000-06:00"}

{"event":"purch= ase","entityType":"user","entityId":&quo= t;103","targetEntityType":"item","targetEntit= yId":"2859418","properties":{},"eventTime&quo= t;:"2016-05-22T12:00:00.000-06:00"}

{&qu= ot;event":"search","entityType":"user",&= quot;entityId":"103","targetEntityType":"item= ","targetEntityId":"BAG","properties":{}= ,"eventTime":"2016-09-04T12:00:00.000-06:00"}

{"event":"purchase","entityType&qu= ot;:"user","entityId":"104","targetEntit= yType":"item","targetEntityId":"2898183"= ,"properties":{},"eventTime":"2016-05-22T12:00:00.= 000-06:00"}

{"event":"search&q= uot;,"entityType":"user","entityId":"104= ","targetEntityType":"item","targetEntityId&q= uot;:"BAG","properties":{},"eventTime":"= 2016-09-04T12:00:00.000-06:00"}

{"event&= quot;:"purchase","entityType":"user","en= tityId":"104","targetEntityType":"item",= "targetEntityId":"2900542","properties":{},&q= uot;eventTime":"2016-05-22T12:00:00.000-06:00"}

{&q= uot;event":"search","entityType":"user",= "entityId":"104","targetEntityType":"ite= m","targetEntityId":"NINE WEST NOLYN","proper= ties":{},"eventTime":"2016-09-06T12:00:00.000-06:00&quo= t;}




--001a114eafec715125053ccc0449-- --001a114eafec71512b053ccc044b Content-Type: application/json; name="engine.json" Content-Disposition: attachment; filename="engine.json" Content-Transfer-Encoding: base64 X-Attachment-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