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

[Bug]: DDPG seems unable to solve the MountainCarContinuous-v0 problem. #482

Open
5 tasks done
sunweice opened this issue Dec 23, 2024 · 1 comment
Open
5 tasks done
Labels
check the checklist You have checked the required items in the checklist but you didn't do what is written...

Comments

@sunweice
Copy link

🐛 Bug

import gymnasium as gym

from stable_baselines3 import DDPG

env = gym.make("MountainCarContinuous-v0", render_mode="rgb_array")

model = DDPG("MlpPolicy", env, verbose=1)
model.learn(total_timesteps=10_0000)

vec_env = model.get_env()
obs = vec_env.reset()
for i in range(1000):
action, _state = model.predict(obs, deterministic=True)
obs, reward, done, info = vec_env.step(action)
vec_env.render("human")

The average reward seems unable to exceed 0

To Reproduce

python train.py --algo ...

Relevant log output / Error message

No response

System Info

No response

Checklist

@sunweice sunweice added the bug Something isn't working label Dec 23, 2024
@araffin
Copy link
Member

araffin commented Dec 23, 2024

hello,
why are you not using the RL Zoo and the tuned hyperparameters?

@araffin araffin added check the checklist You have checked the required items in the checklist but you didn't do what is written... and removed bug Something isn't working labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
check the checklist You have checked the required items in the checklist but you didn't do what is written...
Projects
None yet
Development

No branches or pull requests

2 participants