def argmax(ls):
    """
    Argmax function finding the maximum value for a target function
    :parameter ls: List of values
    :returns: Max value
    """
    m = -1.0
    result = -1
    for n, l in enumerate(ls):
        if l > m:
            m = l
            result = n
    return result