Machine Learning code snippets from python and R