Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems in the evaluation.py #117

Open
Louise599 opened this issue May 8, 2024 · 1 comment
Open

Some problems in the evaluation.py #117

Louise599 opened this issue May 8, 2024 · 1 comment

Comments

@Louise599
Copy link

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.

@eleurent
Copy link
Owner

Maybe you have a version of rl-agents installed locally, and this is the one that's being used instead of your local version with your changes.

You can try to uninstall it with pip uninstall rl_agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants