Commit 071b1333 authored by Avisek Naug's avatar Avisek Naug 🎨
Browse files

Update controller.py: bug fix in weights saving

parent cf22f292
......@@ -375,7 +375,7 @@ def learn_control(source: str, save_to: str, relearn_window: int, duration: int,
else:
log.info('RELEARN: Best control policy weights remain unchanged.')
with open('.lastreward', 'w') as f:
f.write(str(episode_rwd_latest))
f.write(str(episode_rwd_best))
log.info('RELEARN: Control policy adapted.')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment