Machine learning is changing the way retailers do business