def argmax(vec):
    curMax = vec[0]
    curMaxIx = 0

    for ix in xrange(len(vec)):
        val = vec[ix]
        if curMax > vec[ix]:
            curMax = val
            curMaxIx = ix

    return curMaxIx
dataset/ETHPy150Open ufora/ufora/packages/python/pyfora/algorithms/regressionTrees/RegressionTree.py/argmax/swapped operands of `>`