def xy_data(data, config):
    """
    pre-process typical X,y data. 
    data format: last column is labels, rest of the columns are features
    """
    Xdata = data[:,:-1]
    ydata = data[:,-1] #last column is labels/ydata

    return Xdata, ydata