Skip to content
Snippets Groups Projects
Commit 17a90871 authored by Carlos Vieira's avatar Carlos Vieira
Browse files

Adjust no of train samples

parent 3e705d62
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ def load_data(): ...@@ -21,7 +21,7 @@ def load_data():
df = df.sample(frac=1, random_state=10) df = df.sample(frac=1, random_state=10)
x, y = data_prep(df) x, y = data_prep(df)
train_samples = int(y.shape[0] * 0.75) train_samples = 1472 # ~75%, multiple of 32 (batch size)
x_train, x_test = x[:train_samples, :], x[train_samples:, :] x_train, x_test = x[:train_samples, :], x[train_samples:, :]
y_train, y_test = y[:train_samples], y[train_samples:] y_train, y_test = y[:train_samples], y[train_samples:]
return (x_train, y_train), (x_test, y_test) return (x_train, y_train), (x_test, y_test)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment