How to Train Machine Learning Algorithms For Ecommerce