2017-07-18 11 views

答えて

1

if shuffle: 
    # Randomly permute samples 
    X, y = util_shuffle(X, y, random_state=generator) 

    # Randomly permute features 
    indices = np.arange(n_features) 
    generator.shuffle(indices) 
    X[:, :] = X[:, indices] 

return X, y 

意味、関数によって返さ生成されたサンプルは、ラベルまたは他のいくつかの基準によって順序付けされていないこと。

+0

ありがとう、ちょうどそれをテストしたと違いは、ラベルで注文することです。 – Eddy

関連する問題