Scalable Multi-Output Label Prediction: From Classifier Chains to Classifier Trellises