eleurent / rl-agents

Implementations of Reinforcement Learning and Planning algorithms
MIT License
582 stars 152 forks source link

Some problems in the evaluation.py #116

Closed Louise599 closed 4 months ago

Louise599 commented 4 months ago

In function def after_all_episodes(self, episode, rewards, duration), I tried to change the output of logger by changing “logger.info("Episode {} score: {:.1f}".format(episode, sum(rewards)))” to logger.info("Episode:{} score:{:.1f} length:{:.1f}".format(episode, sum(rewards), len(rewards))). However, after running command python experiments.py evaluate configs/IntersectionEnv/env.json \ configs/IntersectionEnv/agents/DQNAgent/ego_attention_2h.json \ --train --episodes=4000 --name-from-config again, the output didn't change, I tried to trace the function call and found that file evaluation.py doesn't seem to have been called, do you have any idea about what is the reason for this? This has been bothering me for a long time and I am very much looking forward to your help in solving it.