ndarray simple shuffle

2018. 1. 9. 11:22 from Dev/Deep learning

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
Posted by banasun :