If we use the correct shuffle function for multi-dimensional arrays, i.e. np.random.shuffle(x) , the array will be shuffled along the first axis as desired.
確定! 回上一頁