Skip to content

Commit

Permalink
log saver added
Browse files Browse the repository at this point in the history
  • Loading branch information
CUN-bjy committed Nov 22, 2020
1 parent da41852 commit b9003a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ def model_train(pretrained_):
agent.save_weights(path +'temp')
env.close()

# log saver
import pickle
pickle.dump(open(path+'%s.log'%time.Time.now(),'wb'))


argparser = argparse.ArgumentParser(
description='Train DDPG Agent on the openai gym')
Expand Down

0 comments on commit b9003a1

Please sign in to comment.