Automated multistep classifier sizing and training for deep learner