def early_stopping_decision(array, patience):
    value = array[((len(array) - patience) - 1)]
    arr = array[(len(array) - patience):]
    check = 0
    for val in arr:
        if (val > value):
            check += 1
    if (check == patience):
        return False
    else:
        return True
def early_stopping_decision(array, patience):
    value = array[((len(array) - patience) - 1)]
    arr = array[(len(array) - patience):]
    check = 0
    for val in arr:
        if (val > value):
            check += 1
    if (check == patience):
        return False
    else:
        return True