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

getting MlpLstmPolicy working with PPO DQN or A2C?? #319

Closed
chrisantha opened this issue Feb 17, 2021 · 1 comment
Closed

getting MlpLstmPolicy working with PPO DQN or A2C?? #319

chrisantha opened this issue Feb 17, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists RTFM Answer is the documentation

Comments

@chrisantha
Copy link

chrisantha commented Feb 17, 2021

I'm not sure how to get the LSTM policy working with the above algorithms. It says

model = PPO('MlpLstmPolicy', env, verbose=1).learn(5000)

File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/stable_baselines3/ppo/ppo.py", line 110, in init
_init_setup_model=False,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/stable_baselines3/common/on_policy_algorithm.py", line 87, in init
tensorboard_log=tensorboard_log,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/stable_baselines3/common/base_class.py", line 106, in init
self.policy_class = get_policy_from_name(policy_base, policy)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/stable_baselines3/common/policies.py", line 815, in get_policy_from_name
f"Error: unknown policy type {name},"
KeyError: "Error: unknown policy type MlpLstmPolicy,the only registed policy type are: ['MlpPolicy', 'CnnPolicy']!"

@Miffyli Miffyli added the RTFM Answer is the documentation label Feb 17, 2021
@Miffyli
Copy link
Collaborator

Miffyli commented Feb 17, 2021

There is no support for LSTM/RNN policies in stable-baselines3 yet. You need to use stable-baselines for those.

Closing as duplicate of #18.

@Miffyli Miffyli closed this as completed Feb 17, 2021
@Miffyli Miffyli added the duplicate This issue or pull request already exists label Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists RTFM Answer is the documentation
Projects
None yet
Development

No branches or pull requests

2 participants