Self-learning classifier with testing and training sets.