Thank you for your response. I am having some issues with the Ruby SDK. I
can't seem to find out how to include the eventTime parameter in the
create_event function. Does anyone have experience importing lots of data
to the app using Ruby? Is there an alternative to the FileExporter in
python for Ruby?

16. feb. 2017 08:56 skrev "Kenneth Chan" <[email protected]>:

> 1. yes.
> try follow this to modify template to use trainImplicit
> http://predictionio.incubator.apache.org/templates/
> recommendation/training-with-implicit-preference/
>
> 2. just import event to PIO as
>  {
> event: buy
> entitiy: user
> entityId: uid
> targetEntity: article
> targetEntityId: article_id
> eventTime: time of the buy event
> }
>
>
> On Tue, Feb 14, 2017 at 2:42 AM, Kasper Bjerke <[email protected]>
> wrote:
>
>> Hi
>>
>> I'm currently trying to set up PredictionIO with the standard
>> Recommendation template as a project. I have 4 years of data, but the data
>> I have can only qualify as "buy" events (I realise that each of the "buy"
>> events can be interpreted as: first "view" then "buy") from E-commerce, so
>> I have changed the code to match:
>>
>> http://predictionio.incubator.apache.org/templates/recommend
>> ation/training-with-implicit-preference/
>>
>> But instead of the sample "view" event I made it "buy". My questions are
>> as follows:
>>
>> 1) Is it possible to use this template based off of only "buy" events?
>> 2) And how should the testdata be formatted? Because all the examples I
>> can find are based off of rating events: uid::movie_id::rating
>>
>> I was thinking: uid::article_id::"buy"? I'm fairly new to this, I have
>> looked into Spark MLLib, but all the examples use the MovieLens dataset.
>>
>> Thank you,
>> - Kasper
>>
>
>

Reply via email to