machine learning amp deep learning in python amp r