Giter Club home page Giter Club logo

Comments (6)

dementrock avatar dementrock commented on August 16, 2024

Hi @cynthiatliu, sorry but I don't totally understand your setup. Do you mean that the action is either a discrete choice (1 out of N), or a two-dimensional continuous number?

You will probably need to implement a new action type, similar to how they are defined right now:

Your scenario is more like a union type rather than a product type. Since you need to be able to convert to/from a vector representation (see flatten and unflatten), one possible scheme is that you use the first entry in the vector to denote whether the action is a discrete choice or a 2D vector. The subsequent entries encode the actual choice.

from rllab.

cyntqliu avatar cyntqliu commented on August 16, 2024

Yes, that's what I mean. And thanks! I'll work on it.

from rllab.

cyntqliu avatar cyntqliu commented on August 16, 2024

Hi,

For this action space, how should the method "new_tensor_variables" be overwritten? Thanks,

from rllab.

dementrock avatar dementrock commented on August 16, 2024

Depending on your representation. If it's either a discrete or a 1D vector, you can use the same code as the Box type: https://github.com/rllab/rllab/blob/master/rllab/spaces/box.py#L71

from rllab.

cyntqliu avatar cyntqliu commented on August 16, 2024

It's either a discrete or a 2D vector.

Additionally, how should the actor distinguish between the types of actions? Part of the actor's action is to choose what type of action, as you know--does that create an extra dimension?

from rllab.

cyntqliu avatar cyntqliu commented on August 16, 2024

Solved the problems 👍 Thanks!

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.