Understanding stacking ensembles