def compute_output_score(self, states, initial_scores, transition_scores,
                             final_scores, emission_scores):
        length = np.size(emission_scores, 0) # Length of the sequence.
        score = 0.0
        score += initial_scores[states[0]]
        for pos in xrange(length): 
             score += emission_scores[pos, states[pos]]
             if pos > 0:
                 score += transition_scores[pos-1, states[pos], states[pos-1]]
        score += final_scores[states[1-length]]
        return score
dataset/ETHPy150Open LxMLS/lxmls-toolkit/lxmls/sequences/sequence_classifier.py/SequenceClassifier.compute_output_score/swapped operands of `-`