Skip to content

Instantly share code, notes, and snippets.

@nachomartinr
Created January 12, 2017 09:04
Show Gist options
  • Save nachomartinr/d38d62019ab7966760a8ef00ea953984 to your computer and use it in GitHub Desktop.
Save nachomartinr/d38d62019ab7966760a8ef00ea953984 to your computer and use it in GitHub Desktop.
with open('intermediate/pre_processed_data.bin', 'wb') as f:
np.save(f, X_train)
np.save(f, y_train)
np.save(f, X_val)
np.save(f, y_val)
np.save(f, X_test)
np.save(f, y_test)
with open('intermediate/pre_processed_data.bin', 'rb') as f:
X_train = np.load(f)
y_train = np.load(f)
X_val = np.load(f)
y_val = np.load(f)
X_test = np.load(f)
y_test = np.load(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment