Skip to content
Snippets Groups Projects
Commit d908c12d authored by Lucas Miranda's avatar Lucas Miranda
Browse files

Implemented shuffle parameter in preprocessing; shuffled validation data in model_training.py

parent fdc34db0
No related branches found
No related tags found
No related merge requests found
......@@ -534,13 +534,19 @@ class table_dict(dict):
X_test = X_test * g.reshape(1, window_size, 1)
if shuffle:
X_train = np.random.choice(X_train, X_train.shape[0], replace=False)
X_test = np.random.choice(X_test, X_test.shape[0], replace=False)
X_train = X_train[
np.random.choice(X_train.shape[0], X_train.shape[0], replace=False)
]
X_test = X_test[
np.random.choice(X_test.shape[0], X_test.shape[0], replace=False)
]
return X_train, X_test
if shuffle:
X_train = np.random.choice(X_train, X_train.shape[0], replace=False)
X_train = X_train[
np.random.choice(X_train.shape[0], X_train.shape[0], replace=False)
]
return X_train
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment