Amazon believes that the future of machine learning — the idea that software can be programmed in such a way that it teaches itself and eventually becomes artificially intelligent — is in shopping.