From user-return-1921-archive-asf-public=cust-asf.ponee.io@predictionio.apache.org Wed May 9 14:01:55 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A593C180649 for ; Wed, 9 May 2018 14:01:54 +0200 (CEST) Received: (qmail 51245 invoked by uid 500); 9 May 2018 12:01:53 -0000 Mailing-List: contact user-help@predictionio.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.apache.org Delivered-To: mailing list user@predictionio.apache.org Received: (qmail 51235 invoked by uid 99); 9 May 2018 12:01:53 -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; Wed, 09 May 2018 12:01:53 +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 3CEEB1A3661 for ; Wed, 9 May 2018 12:01:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.999 X-Spam-Level: * X-Spam-Status: No, score=1.999 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=grazitti-com.20150623.gappssmtp.com Received: from mx1-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 quuQPmROQ_MV for ; Wed, 9 May 2018 12:01:51 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 77C025F24C for ; Wed, 9 May 2018 12:01:51 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id j193-v6so50572362lfg.6 for ; Wed, 09 May 2018 05:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grazitti-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=WO1/QHF1ssBYFurD2NXua10Cjpu4kDObwviw45CEGao=; b=Nbd+kSi1Wgk4nb91/YnABopVtMsBQst+32GDXEx2jtMpqJB7OC9ieXxsl5B9KRjnvQ fVDfUKDDkhScwfZMYUw3gJOM5bEhDLBr527caa/wtriawnjo1voASGEsIjuJdNK+8HhL VaiFuzh+EDig7T3f9PKOyICyLXaH+aCgE8dh4rlswR8/S770LxcfjHUgKClCSKa24Hes f+S2Sy/Sna2AnggsbxCgf2m9zUJFYvqUgNIB39ZFwpnO+9Ixf+blhfUsqqHaoy4bM/JV ZTSjXycfVvXP07ACfkfFrY+A+sdEUup/WulIMedOGqIohuPBRxTj87kVL6EkPktE4aS2 snLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=WO1/QHF1ssBYFurD2NXua10Cjpu4kDObwviw45CEGao=; b=sYp+IzOw98YhyX4jI47NDLCuf2W/PLMQ6ZlJNNxuposdW3rd8baiza1jAwkZ0g7d4e L8Ycd67RM6Np31Gdt8Dpwzq2hAfRT3inF43EK1V2vmr6r9W/nCiSK7WPRqHWqdLhI0n8 D4k9eHQpAYjCOSeROGt8AsxMuPzvgf9ofxYein0d5zaNecsgZ+vby2ZtuR6/fCyo/23F jSuZRBd+NwA8QjsPO1sptQbrDNO8YfsFAWUIitoHcIBlDvAc+RV7CFS5j9jkNW2LKiea bGN/vXyyMGtSi53zmjoq0BWsQLcsRRd4hDnIEDIUqA9yUuUBzLnuPPvK3oleABLcK4rG vIyg== X-Gm-Message-State: ALQs6tDHa1VydGe3uN4KPphISmYc6ybMiMxN8nw6H81kpg2cDw+qE+Z6 XbjLisyOmmokeTXCYcXJ/NDWSIp3JTdFgjup5QMreA== X-Google-Smtp-Source: AB8JxZpoCQbBYovKZSMTyT18rxvVc1tz30bERh9Ur9ZRNcOq6rjCBE+yu/PhG+hjhKaCE0XkVqjjkwaT4qgGjw3t2rg= X-Received: by 2002:a2e:1545:: with SMTP id 5-v6mr8828737ljv.56.1525867304426; Wed, 09 May 2018 05:01:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.179.83.141 with HTTP; Wed, 9 May 2018 05:01:43 -0700 (PDT) In-Reply-To: References: From: Rajesh Jangid Date: Wed, 9 May 2018 17:31:43 +0530 Message-ID: Subject: Re: error in pio train E-Commerce Recommender To: user@predictionio.apache.org Content-Type: multipart/alternative; boundary="000000000000a7bb84056bc4aac4" --000000000000a7bb84056bc4aac4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Marco, Yes, I came across the same error a little while ago and it seems there should be at least one viewEvent in data to train recommender. On Wed, May 9, 2018 at 5:18 PM, Marco Goldin wrote: > hi, i'm new to PredictionIO and i'm trying to use the E-Commerce > Recommender with some sample data, but when i launch pio train i get this > error which cause the train to abort: > > "Exception in thread "main" java.lang.IllegalArgumentException: > requirement failed: viewEvents in PreparedData cannot be empty. Please > check if DataSource generates TrainingData and Preprator generates > PreparedData correctly." > > =E2=80=8Bi imported events from input file with required json format: > > {"entityType": "user", "targetEntityType": "item", "event": "buy", > "entityId": "341785", "eventTime": "2013-01-02T18:42:15.716Z", > "targetEntityId": "150020361"} > > =E2=80=8Bdoes it mean that there must be at least some "view" events in = the data > otherwise the recommender cannot train properly?=E2=80=8B > > thanks > Marco > --000000000000a7bb84056bc4aac4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Marco,
=C2=A0 Yes, I came across the same= error a little while ago and it seems there should be at least one viewEve= nt in data to train recommender.

<= div class=3D"gmail_quote">On Wed, May 9, 2018 at 5:18 PM, Marco Goldin <markomarko4@gmail.com> wrote:
hi, i'm new to PredictionIO an= d i'm trying to use the E-Commerce Recommender with some sample data, b= ut when i launch pio train i get this error which cause the train to abort:=

"Exception in thread "main&quo= t; java.lang.IllegalArgumentException: requirement failed: viewEvents = in PreparedData cannot be empty. Please check if DataSource generates Train= ingData and Preprator generates PreparedData correctly."

=E2=80=8Bi imported events from input file with re= quired=C2=A0 json format:

{"entityType": "user", "targetEntityType"= : "item", "event": "buy", "entityId"= ;: "341785", "eventTime": "2013-01-02T18:42:15.716= Z", "targetEntityId": "150020361"}

=C2=A0=E2=80=8Bdoes it mean that ther= e must be at least some "view" events in the data otherwise the r= ecommender cannot train properly?=E2=80=8B

than= ks
Marco

--000000000000a7bb84056bc4aac4--