refactor learning for classifiers (remove one instance learning)