sklearn随机播放和np.random.permutation之间的区别

时间:2019-03-29 01:33:04

标签: python numpy scikit-learn shuffle

做之间有什么区别

idx = np.random.permutation(len(X))
x,y = X[idx], labels[idx] 

from sklearn.utils import shuffle
x, y = shuffle(X, labels)

随机播放数据集?谢谢

0 个答案:

没有答案