Commit 382fe10b authored by Lukas Wolf's avatar Lukas Wolf
Browse files

normalize inputs

parent 58a4e3fe
......@@ -189,6 +189,9 @@ def get_sacc_data(verbose=True):
X_reshaped = np.transpose(X, (0,2,3,1))
# Cut off the last 4 columns (time, x, y, pupil size)
X_reshaped = X_reshaped[:,:,:129,:]
norm = np.linalg.norm(X_reshaped)
X_reshaped = X_reshaped / norm
y_reshaped = np.transpose(y, (0,2,1,3,4))
if verbose:
......@@ -303,6 +306,9 @@ def get_sacc_fix_data(verbose=True):
X_reshaped = np.transpose(X, (0,2,3,1))
# Cut off the last 4 columns (time, x, y, pupil size)
X_reshaped = X_reshaped[:,:,:129,:]
norm = np.linalg.norm(X_reshaped)
X_reshaped = X_reshaped / norm
y_reshaped = np.transpose(y, (0,2,1,3,4))
if verbose:
......@@ -448,6 +454,9 @@ def get_fix_sacc_fix_data(verbose=True):
X_reshaped = np.transpose(X, (0,2,3,1))
# Cut off the last 4 columns (time, x, y, pupil size)
X_reshaped = X_reshaped[:,:,:129,:]
norm = np.linalg.norm(X_reshaped)
X_reshaped = X_reshaped / norm
y_reshaped = np.transpose(y, (0,2,1,3,4))
if verbose:
......
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