Created
February 17, 2017 13:07
-
-
Save previtus/c5082b570de5fd8c4fd45867be80cd1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def saveHistory(history_dict, filename): | |
to_be_saved = data = {'S': history_dict} | |
np.save(open(filename, 'w'), to_be_saved) | |
def loadHistory(filename): | |
loaded = np.load(open(filename)) | |
return loaded[()]['S'] | |
hi = model.fit(...) | |
saveHistory(hi.history, 'tmp_saved_history.npy') | |
visualize_history(loadHistory('tmp_saved_history.npy')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment