update the trained classifier.