We want to build a TensorFlow model that predicts the next purchase according to the history of a customer’s last two purchases.
TensorFlow model input works over every 3 purchases:
1. Current purchase day (0, … , 6)
2. Current purchase time (00:00)
3. Current purchase items list: [SKU #1, SKU #8]
4. Last purchase day (0, … , 6)
5. Last purchase time (00:00)
6. Last purchase items list [SKU #1, SKU #8]
Included in the train data: (target prediction)
1. Next purchase day (0, … , 6)
2. Next purchase time (00:00)
3. Next purchase items list: [SKU #1, SKU #8]
Write a code in Node JS TensorFlow
1. Script to train the model
2. Script that given a model of 2 consecutive purchases predicts the next one
3. Provide a script that shows the result accuracy given a test group
To be considered please reply with:
1. How much experience do you have with Node JS TensorFlow?
2. What additional information would you suggest adding to the model to improve results?
3. What kind of model would you use to implement the project requirements?