(data, labels)
return data[idx, ...], labels[idx], idx
Shuffle data and labels.
        Input:
          data: B,N,... numpy array
          label: B,... numpy array
        Return:
          shuffled data, label and shuffle indices
Shuffle data and labels.
        Input:
          data: B,N,... numpy array
          label: B,... numpy array
        Return:
          shuffled data, label and shuffle indices
Shuffle data and labels . Input : data : B N ... numpy array label : B ... numpy array Return : shuffled data label and shuffle indices
def shuffle_data(data, labels):
    """ Shuffle data and labels.
        Input:
          data: B,N,... numpy array
          label: B,... numpy array
        Return:
          shuffled data, label and shuffle indices
    """
    idx = np.arange(len(labels))
    np.random.shuffle(idx)
    return data[idx, ...], labels[idx], idx
def shuffle_data ( data , labels ) : idx = np . arange ( len ( labels ) ) np . random . shuffle ( idx ) return data [ idx , ... ] , labels [ idx ] , idx