def target_string_to_int(target_value):
    """
    Convert a String-based into an Integer-based target value.
    """
    if target_value == "Iris-setosa\n":
        return 0
    elif target_value == "Iris-versicolor\n":
        return 1
    else:
        return 2