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
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment