def testSuccess(classifier,test,classifications=None):
    if classifications is None:
        classifications = {}
        for label in test.domain.class_var.values:
            for label2 in test.domain.class_var.values:
				if classifications not in (str(label),str(label2)):
				    classifications[(str(label),str(label2))] = 0
    correct = 0
    wrong = 0
    for example in test:
        try:
            val = classifier(example)
        except:
            return 'Error'
        classifications[(str(val),str(example['label']))]+=1.0
        if val==example['label']:
            correct+=1.0
        else:
            wrong+=1.0
    return (correct,wrong,classifications)
dataset/ETHPy150Open andreykurenkov/emailinsight/pyScripts/orangeClassify.py/testSuccess/swapped operands of `not in`