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

AttributeError: 'Box' object has no attribute 'n' #7

Open
guanzeying opened this issue Feb 24, 2018 · 5 comments
Open

AttributeError: 'Box' object has no attribute 'n' #7

guanzeying opened this issue Feb 24, 2018 · 5 comments

Comments

@guanzeying
Copy link

from baselines import deepq
env = sc.SingleBattleEnv(args.ip, args.port)
act = deepq.learn(
env,
q_func=model,
lr=1e-3,
max_timesteps=100000,
buffer_size=50000,
exploration_fraction=0.1,
exploration_final_eps=0.02,
print_freq=10
)
error happen.
num_actions=env.action_space.n,
AttributeError: 'Box' object has no attribute 'n'
How do I solve it?

@wwxFromTju
Copy link

chose the version of gym

@guanzeying
Copy link
Author

Thanks, I found ddpg can work, no error.

@gloryVine
Copy link

gloryVine commented Jul 4, 2019

Thanks, I found ddpg can work, no error.

Then please explain how you solved it.

@Usmaniatech
Copy link

chose the version of gym

What does that mean. I am facing the same issue.

@Usmaniatech
Copy link

I am facing the same issue. Are u able to run deepq ? @gloryVine

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

4 participants