predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Jangid <raje...@grazitti.com>
Subject Re: error in pio train E-Commerce Recommender
Date Wed, 09 May 2018 12:01:43 GMT
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 <markomarko4@gmail.com> 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."
>
> ​i 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"}
>
>  ​does it mean that there must be at least some "view" events in the data
> otherwise the recommender cannot train properly?​
>
> thanks
> Marco
>

Mime
View raw message