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 <markomar...@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
>

Reply via email to