tf_deep_rl_trader
tf_deep_rl_trader copied to clipboard
not able to test the whole thing
Traceback (most recent call last):
File "ppo_trader.py", line 134, in
FileNotFoundError: [Errno 2] No such file or directory: './info/ppo_1579793.4444944328_LS_0_0.info'
You should create ./info/ directory .
Hi , with respect to info , i would like to know if this is results from the test run or the train run ?
below callback function is called after the training, so it's the result from the train run.
def episode_finished(r):
reward = "%.6f" % (r.episode_rewards[-1])
print("Finished episode {ep} after {ts} timesteps (reward: {reward})".format(ep=r.episode, ts=r.episode_timestep,
reward=reward))
if np.mean(r.episode_rewards[-1]) > 0 :
r.agent.save_model(SAVE_DIR, append_timestep=False)
return True