Ensembles for predicting structured outputs