Machine learning code for Kaggle's Digit Recognizer competition