GitHub user vaghawan opened an issue:

    
https://github.com/apache/incubator-predictionio-template-ecom-recommender/issues/11

    How Would I load json data for training the model?

    Hi, 
    there seems no example in the documentation regarding what kind of data can 
be imported and trained. I've data that comes in json format which are like 
this: 
    ```
    [
    {
    bill_no: "CM/00038646/16",
    bill_date: "2016-12-01 07:19:45",
    icode: "BM55423",
    customer_code: "00041077"
    },
    {
    bill_no: "CM/00038646/16",
    bill_date: "2016-12-01 07:19:45",
    icode: "BM49665",
    customer_code: "00041077"
    },
    {
    bill_no: "CM/00038646/16",
    bill_date: "2016-12-01 07:19:45",
    icode: "BM60574",
    customer_code: "00041077"
    },
    {
    bill_no: "CM/00038647/16",
    bill_date: "2016-12-01 07:21:26",
    icode: "BM67206",
    customer_code: "00041272"
    },
    ]
    ```
    I'm not even sure if I can load such data, all the events are 'buy' so 
there is no events like view or anything else. I just need to train the model 
for buy event. First I want to know if this template supports this kind of 
data, and second I only work with one event which is 'buy' in that case do I 
need to modify my json file, like appending 'buy' event in each json string?

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to