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

NameError: name 'avg_reward' is not defined #1

Open
chenxi-yang opened this issue Jul 27, 2022 · 1 comment
Open

NameError: name 'avg_reward' is not defined #1

chenxi-yang opened this issue Jul 27, 2022 · 1 comment

Comments

@chenxi-yang
Copy link

When running the
python algos/main.py --env-name CartPole-v1 --algo-name=CPO --exp-num=1 --exp-name=CPO/CartPole --save-intermediate-model=10 --gpu-index=0 --max-iter=500, I encountered the following error:

Traceback (most recent call last):
  File "algos/main.py", line 229, in <module>
    main_loop()
  File "algos/main.py", line 224, in main_loop
    save_info_obj.dump_lists(avg_reward, num_of_steps, num_of_episodes, total_num_episodes, total_num_steps, rewards_std, env_avg_reward, v_loss_list, p_loss_list, eval_avg_reward, eval_avg_reward_std)
NameError: name 'avg_reward' is not defined
@HasarinduPerera
Copy link

Have you found any resolution yet? @chenxi-yang I am having the same issue.

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