python save and load variables from text file code example
Example: how to save python variables locally
with open('train.pickle', 'wb') as f:
pickle.dump([X_train, y_train], f)
with open('train.pickle', 'wb') as f:
pickle.dump([X_train, y_train], f)