def update_evaluation(self, predicted_label, expected_label, predictions):
        self.confusion_matrix[expected_label][predicted_label] += 1

        if predicted_label == expected_label:
            self.positives.append(expected_label)
        else:
            self.negatives.append(expected_label)

        self.reliabilities.append(UMath.reliability([sum(predictions) / x for x in predictions]))

        print "predict: {}, expect: {} {}".format(predicted_label, expected_label, "OK" if predicted_label == expected_label else "")
dataset/ETHPy150Open tonybeltramelli/Deep-Spying/server/analytics/modules/classification/RelevanceAssessment.py/RelevanceAssessment.update_evaluation/swapped operands of `/`