Generalize classifier choice.