def oneHotEncode_01(x, r_vals=None):
    """
    This function one hot encodes the input for a binary label 
    """
    # define universe of possible input values
    onehot_encoded = []
    universe = [0, 1]
    for i in range(len(universe)):
        if x == universe[i]:
            value = 1.
        else:
            value = 0.
        onehot_encoded.append(value)
    return onehot_encoded