Giter VIP home page Giter VIP logo

Comments (6)

dementrock avatar dementrock commented on August 29, 2024

Hi @AliGhadirzadeh, this error is because the CartPole environment in Gym uses discrete actions. You can get rid of the normalize call, and use a CategoricalMLPPolicy instead of a GaussianMLPPolicy, which should work.

from rllab.

korymath avatar korymath commented on August 29, 2024

Same issue here.... now running into problems with running DDPG with an exploration strategy on domains other than the default example. Sorry to hop in here... but it is a similar problem. Happy to make a new thread if needed.

[2016-06-15 17:36:13,322] Making new env: Acrobot-v0
Error while instantiating <class 'rllab.exploration_strategies.gaussian_strategy.GaussianStrategy'>

File "/rllab/rllab/exploration_strategies/gaussian_strategy.py", line 13, in init
assert isinstance(env_spec.action_space, Box)
AssertionError

Thoughts?

from rllab.

dementrock avatar dementrock commented on August 29, 2024

@korymath DDPG unfortunately only works with continuous actions, at least in the way it is currently set up. In environments with discrete actions, DQN might be a better choice. rllab doesn't have an implementation of DQN at the moment due to its emphasis on continuous control, but there seems to be some other implementations available e.g. https://github.com/sherjilozair/dqn

from rllab.

korymath avatar korymath commented on August 29, 2024

Awesome, thank you kindly for the quick reply. Okay, I understand what you
are saying, the action space is discrete in those domains... that is what I
imagined as the difference between CartPole and InvertedPendulum and that
is what seems to be the case.

On Wed, Jun 15, 2016 at 8:58 PM, Rocky Duan [email protected]
wrote:

@korymath https://github.com/korymath DDPG unfortunately only works
with continuous actions, at least in the way it is currently setup. In
environments with discrete actions, DQN might be a better choice. rllab
unfortunately doesn't have an implementation of DQN at the moment due to
its emphasis on continuous control, but there seems to be some other
implementations available e.g. https://github.com/sherjilozair/dqn


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#16 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAK3sy73XHMqDmnvDnGYcO9EC5hqyhlqks5qMMnsgaJpZM4I2Tgi
.


Kory Mathewson

from rllab.

AliGhadirzadeh avatar AliGhadirzadeh commented on August 29, 2024

Thanks for your support. It works now.

from rllab.

dementrock avatar dementrock commented on August 29, 2024

Ok, awesome!

from rllab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.