Skip to content

Commit

Permalink
some delete
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzikang authored and tianzikang committed Jul 7, 2022
1 parent e7dc4a0 commit b956be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def dqn_learning(
writer.add_scalar(tag=f'starcraft{env_name}_eval/length', scalar_value=mean(eval_step), global_step=t+1)
writer.add_scalar(tag=f'starcraft{env_name}_eval/wintag', scalar_value=mean(eval_win), global_step=t+1)

### Log progress and keep track of statistics
### log train results
df = pd.DataFrame({})
df.insert(loc=0, column='rewards', value=log_rewards)
df.insert(loc=1, column='steps', value=log_steps)
Expand All @@ -267,4 +267,4 @@ def dqn_learning(
plt.savefig(log_dir + env_name)

writer.close()
env.close()
env.close()

0 comments on commit b956be0

Please sign in to comment.