timurgepard commited on
Commit
f504453
·
verified ·
1 Parent(s): 366f9e4

Update symphony_SE/train.py

Browse files
Files changed (1) hide show
  1. symphony_SE/train.py +2 -2
symphony_SE/train.py CHANGED
@@ -193,9 +193,9 @@ def sim_loop(env, episodes, testing, Q_learning, algo, total_rewards, total_step
193
  save(algo, total_rewards, total_steps)
194
  print("start testing")
195
  log_file.write(str(total_steps) + ",")
196
- Return = sim_loop(env_test, 25, True, Q_learning, algo, [], total_steps=0)
197
  print("end of testing")
198
- log_file.write(str(round(Return, 2)) + "\n")
199
 
200
 
201
  # if steps is close to episode limit (e.g. 950) we shut down actions and leave noise to get Terminal Transition:
 
193
  save(algo, total_rewards, total_steps)
194
  print("start testing")
195
  log_file.write(str(total_steps) + ",")
196
+ test_return = sim_loop(env_test, 25, True, Q_learning, algo, [], total_steps=0)
197
  print("end of testing")
198
+ log_file.write(str(round(test_return, 2)) + "\n")
199
 
200
 
201
  # if steps is close to episode limit (e.g. 950) we shut down actions and leave noise to get Terminal Transition: