Extract training function per each class to reduce memory consumption further
Merge branch 'master' of https://github.com/mitbal/course-project