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

AC_CartPole.py may need to consider the distance between cart to the center #5

Closed
zsdonghao opened this issue Jul 20, 2017 · 1 comment

Comments

@zsdonghao
Copy link

zsdonghao commented Jul 20, 2017

Hi, I think AC_CartPole.py may need to consider the distance between cart to the center.

Simply adding r -= abs(s_[0]) * .1 to the reward.

@zsdonghao zsdonghao changed the title AC_CartPole.py may need to consider this distance between cart to the center AC_CartPole.py may need to consider the distance between cart to the center Jul 20, 2017
@MorvanZhou
Copy link
Owner

Hi @zsdonghao , thanks for the suggestion.

I tried adding that line into the code, but it seems not helping. Maybe the approximated V(s_) and V(s) still are the problem.

I will close the issue, but feel free to reopen.

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