codes for machine learning class