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 CB554200C46 for ; Wed, 29 Mar 2017 21:47:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C9C19160B8A; Wed, 29 Mar 2017 19:47:03 +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 EB2F6160B5D for ; Wed, 29 Mar 2017 21:47:02 +0200 (CEST) Received: (qmail 35943 invoked by uid 500); 29 Mar 2017 19:47:02 -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 35930 invoked by uid 99); 29 Mar 2017 19:47:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2017 19:47:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A6948185F63 for ; Wed, 29 Mar 2017 19:47:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=occamsmachete-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ctSGu0yxZGMx for ; Wed, 29 Mar 2017 19:47:00 +0000 (UTC) Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E92595FDBE for ; Wed, 29 Mar 2017 19:46:59 +0000 (UTC) Received: by mail-pg0-f54.google.com with SMTP id 21so16746307pgg.1 for ; Wed, 29 Mar 2017 12:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=occamsmachete-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=aKU5lTM9OcZ4cszYgmT4h5O0NCtaRg35oDNTreYCNjI=; b=dZ9zeAmNWCGaZoRqNq82mkKfR+IxB1CNxjniXwHdcl+T5nAepK2dIW8ejGCVG0v8E6 xGILwy3vgYff9euvDPfUOOcISy8nt9afCa8AQ8/qEU/k4vWhYGI2NG/ISvClwr99a7fD NrG/Czf+Ew1dO84hZTrR3nmaYKdr83ab16Wcc/xlOOl5D+lbBHXZDOgUFPHwDR0+hW0l QpjyBHsxhMye52RL3+WqYqCdZgeyp5A1k+3n3zL4Mmzgw0XtGfDHXm8cDZdxz8XZTf37 PtWswZ3BHFBtx/oFDmrL3b7O9WlAoEmfABYdiQ+HmG8/oG9lc2kFOwtvMbWPb2uoafNm +NJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=aKU5lTM9OcZ4cszYgmT4h5O0NCtaRg35oDNTreYCNjI=; b=qE7kW5FkiSRQHl6wpTphquWEnQxjqqQzBtVoVV4ossDddYSP8SXd6mpI/QgT4zxel0 5W3DkKjDgF2D6kUA55vLd5pVZOgOhflkmBj9xkHOF8CZt48WvoLhVMxbMHCk2C9eHMSt qnCNk6QGWMUBGMunmeNLjHYXB9ePRJ0JOCdzDZvFNhRHCnpKui4Lf/cNweTzF9tk40Yr zF7SI8ytvk2O1tsD7T23NH3ub2mvuLQ60bkRHmd6SMTb5XKrqx4VPcebl3m5K+x6VCf7 Aox51GuPPS4jjqqrBoNLo3hP1fq2ZyElbJrN1ZoXwz5HWhwQbxjYny4DX9mKqruajD4n iczg== X-Gm-Message-State: AFeK/H0u7XEiO1XGbCoWfy5ialOddZQvOb8WuxOETLHgkOjBGslbUtHWq/2HIXJA42Bf5w== X-Received: by 10.84.232.131 with SMTP id i3mr2560269plk.172.1490816812602; Wed, 29 Mar 2017 12:46:52 -0700 (PDT) Received: from [192.168.0.6] (c-24-18-213-211.hsd1.wa.comcast.net. [24.18.213.211]) by smtp.gmail.com with ESMTPSA id 144sm5502397pfv.42.2017.03.29.12.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Mar 2017 12:46:51 -0700 (PDT) From: Pat Ferrel Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_F0310D2D-9182-46C9-875F-62142C201A8A" Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: pio train error java.lang.NegativeArraySizeException Date: Wed, 29 Mar 2017 12:46:50 -0700 In-Reply-To: <11994180-56B7-41BA-BF30-CFCA5CF92723@gmail.com> Cc: actionml-user To: user@predictionio.incubator.apache.org References: <11994180-56B7-41BA-BF30-CFCA5CF92723@gmail.com> X-Mailer: Apple Mail (2.3259) archived-at: Wed, 29 Mar 2017 19:47:04 -0000 --Apple-Mail=_F0310D2D-9182-46C9-875F-62142C201A8A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Do you know an item is in NY? or are you trying to find what is = preferred by New Yorkers? If the latter send events (user-id, location-preference, location-id) as = secondary events. The location-id should be chosen to include some = people but not too many so there is variation in what New Yorkers prefer = vs Las Vegas denizens. I=E2=80=99d use postal codes (zip codes) or phone = area codes for coarser granularity. The benefit of using these = code-systems is that they are never dups like 2 cities with the same = name. Also lat-lon doesn=E2=80=99t work since not 2 people can existing = in such a fine grained location. =20 Once you determine the location encoding scheme you=E2=80=99ll use, = determine how many possible location-ids you=E2=80=99ll have. This = should affect the param maxCorrelatorsPerItem described here: = http://actionml.com/docs/ur_config = Set it to a number much smaller than the total number of location-ids = you have. For instance if you were using user gender you'd set this to 1 = (actually this is an extreme and would use another method but serves to = illustrate) BTW UR support is here: = https://groups.google.com/forum/#!forum/actionml-user = On Mar 29, 2017, at 12:31 PM, InfoQuest Solutions = wrote: Pat,=20 I need to store event data based on user location like user =3D 1 coming = from New York viewed an item, then user =3D 1 coming from New York = bought item. I want to recommend items to other users are viewing in New = York itself. So please help me out with indicator params in engine.json and how to = efficiently set event,user and item data. Thanks Gaurav So how shall i proceed with set event or i need to put every item = against every location and=20 > On 28-Mar-2017, at 11:35 PM, Haddix, Steven > wrote: >=20 > the event entity --Apple-Mail=_F0310D2D-9182-46C9-875F-62142C201A8A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Do you know an item is in NY? or are you trying to find what = is preferred by New Yorkers?

If the latter send events (user-id, location-preference, = location-id) as secondary events. The location-id should be chosen to = include some people but not too many so there is variation in what New = Yorkers prefer vs Las Vegas denizens. I=E2=80=99d use postal codes (zip = codes) or phone area codes for coarser granularity. The benefit of using = these code-systems is that they are never dups like 2 cities with the = same name. Also lat-lon doesn=E2=80=99t work since not 2 people can = existing in such a fine grained location.  

Once you determine the location = encoding scheme you=E2=80=99ll use, determine how many possible = location-ids you=E2=80=99ll have. This should affect the = param maxCorrelatorsPerItem described here: http://actionml.com/docs/ur_config Set it to a = number much smaller than the total number of location-ids you have. For = instance if you were using user gender you'd set this to 1 (actually = this is an extreme and would use another method but serves to = illustrate)
=

On Mar 29, 2017, at = 12:31 PM, InfoQuest Solutions <infoquestindia@gmail.com> wrote:

Pat, 

I need to store event = data based on user location like user =3D 1 coming from New York viewed = an item, then user =3D 1 coming from New York bought item. I want to = recommend items to other users are viewing in New York itself.

So please help me out = with indicator params in engine.json and how to efficiently set = event,user and item data.

Thanks
Gaurav


So = how shall i proceed with set event or i need to put every item against = every location and 

On = 28-Mar-2017, at 11:35 PM, Haddix, Steven <Steven.Haddix@wendys.com> wrote:

 the event = entity


= --Apple-Mail=_F0310D2D-9182-46C9-875F-62142C201A8A--