def maxValue(labels):
    label_set = set(labels)
    
    # setup variables needed for statistics
    sums = {}
    count = 0.0
    for each in label_set:
        sums[each] = 0.0
        
    for each in labels:
        sums[each] += 1.0
        count += 1.0
        
    highVal = 0.0
    highLab = labels[0]
    for key,value in sums.iteritems():
        if highVal > value:
            highVal = value
            highLab = key
    return highLab
dataset/ETHPy150Open bolme/pyvision/src/pyvision/vector/id3.py/maxValue/swapped operands of `>`