标签: 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)
随机播放数据集?谢谢