0

np.random.permutation我写信询问使用 Fisher-Yates 洗牌算法对数据集进行洗牌与使用以下代码片段相比有什么区别:

X.shape[1] # number of training examples

permutation = list(np.random.permutation(m))
shuffled_X = X[:, permutation]
shuffled_Y = Y[:, permutation].reshape((1,m))
4

0 回答 0