Giter VIP home page Giter VIP logo

Comments (4)

dementrock avatar dementrock commented on July 25, 2024

This is usually not the actual exception. Try looking above that message for the actual error.

from rllab.

Breakend avatar Breakend commented on July 25, 2024

I get a similar problem, but it is due to the action spaces not being a Box (see assertion on line 55 of gaussian_mlp_policy.py). Maybe, there should be some conversion function in the GymEnv class? Or better, gaussian_mlp_policy.py should handle Discrete action spaces too if possible?

One possible resource for how this can be done is:

https://github.com/joschu/modular_rl/blob/master/modular_rl/agentzoo.py

from rllab.

dementrock avatar dementrock commented on July 25, 2024

@Breakend you should use a CategoricalMLPPolicy for this.

from rllab.

Breakend avatar Breakend commented on July 25, 2024

@dementrock Ah, yes. Didn't notice this. I added a pull-request to split the examples so that this becomes more clear. Also added a TF example as part of that pull-request so that people are aware of those possibilities.

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.