ndarray를 간단하게 shuffle할 때 씁니다:
np.random.seed(seed) indices = np.arange(len(x_train)) np.random.shuffle(indices) x_train = x_train[indices]
'Dev > Deep learning' 카테고리의 다른 글
CUDA, cuDNN 설치할 때 팁 - dmesg (0) | 2018.03.21 |
---|
ndarray를 간단하게 shuffle할 때 씁니다:
np.random.seed(seed) indices = np.arange(len(x_train)) np.random.shuffle(indices) x_train = x_train[indices]
CUDA, cuDNN 설치할 때 팁 - dmesg (0) | 2018.03.21 |
---|