4
のパラメータが無効であると主張されて、私は下の行フィーチャーし、いくつかのコードを実行しようとするので:「シャッフル」がmodel_selection.train_test_split
X_train, X_test, Y_train, Y_test=train_test_split(X_features, Y_feature, test_size=0.2, random_state=42, stratify=None, shuffle=False)
を私は次のエラーを取得する:
TypeError: Invalid parameters passed: {'shuffle': False}
Yet, the 'shuffle' parameter is listed on scikitlearn website (http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html).
私はパラメータを別々にしようとしましたが、XとYを別々に分割しましたが、結果は得られませんでした。 train_test_splitがデータをランダム化するのを防ぐことができる他の方法はありますか?
あなたが持っているsklearnのバージョンは何ですか? – lejlot
私は0.18を使用していました。 – dr2509