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

样例就跑不通 #101

Open
zx081325 opened this issue Aug 4, 2023 · 1 comment
Open

样例就跑不通 #101

zx081325 opened this issue Aug 4, 2023 · 1 comment

Comments

@zx081325
Copy link

zx081325 commented Aug 4, 2023

python main.py --scenario classic_CartPole-v0 --algo dqn就各种报错

@zx081325
Copy link
Author

zx081325 commented Aug 4, 2023

/root/.pyenv/versions/3.7.5/lib/python3.7/site-packages/gym/envs/registration.py:556: UserWarning: WARN: The environment CartPole-v0 is out of date. You should consider upgrading to version v1.
f"The environment {id} is out of date. You should consider "
/root/my_ai_lib/env/ccgame.py:22: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
observation = np.array(observation)
joint action space is Discrete(2)
Traceback (most recent call last):
File "examples/main.py", line 23, in
runner = Runner(args)
File "/root/my_ai_lib/examples/runner.py", line 87, in init
self.agent = SingleRLAgent(self.paras)
File "/root/my_ai_lib/examples/agents/singleagent.py", line 24, in init
self.algo = ini_agents(args)
File "/root/my_ai_lib/examples/agents/singleagent.py", line 16, in ini_agents
agent = getattr(agent_file_import, agent_class_name)(args)
File "/root/my_ai_lib/examples/algo/dqn/dqn.py", line 38, in init
num_hidden_layer=args.num_hidden_layer,
AttributeError: 'types.SimpleNamespace' object has no attribute 'num_hidden_layer'

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

1 participant