Predict the class label of X

def predict(self, sample, pstates):
        """
        Predict the class label of X
        """
        scores = {}
        for label, pohmm in self.pohmms.items():
            scores[label] = pohmm.score(sample, pstates)
        max_score_label = max(scores.items(), key=itemgetter(1))[0]
        return max_score_label, scores