1. A method, comprising: constructing, by a computer, a partial order among a set of classifiers, wherein the partial order indicates which classifiers can be input as features for other classifiers; based on the partial order, selecting, by the computer, as a feature for a second one of the classifiers, a function based on an output of a first one of the classifiers; and training the second classifier using the function based on the output of the first classifier.