machine learning class homework