Script for training classifiers