Machine Learning Sample Code