Coder Social home page Coder Social logo

Comments (5)

AlexKuhnle avatar AlexKuhnle commented on July 3, 2024 2

The beta distribution is now implemented and will be used instead of Gaussian if min_value and max_value are given for an action.

from tensorforce.

michaelschaarschmidt avatar michaelschaarschmidt commented on July 3, 2024 1

Min max values are not supported yet, this does not work well in a Gaussian - Alex wrote this not as a bug but as a task for himself.

We will implement a Beta distribution for this purpose - see this paper: http://proceedings.mlr.press/v70/chou17a.html

I will try to get to this in the coming week

from tensorforce.

michaelschaarschmidt avatar michaelschaarschmidt commented on July 3, 2024

Will do this via Beta distribution

from tensorforce.

AdamStelmaszczyk avatar AdamStelmaszczyk commented on July 3, 2024

I also ran on this issue with PPO and TRPO. Passed actions in Config to the algorithms is:

{'max_value': 1.0, 'shape': (18,), 'min_value': 0.0, 'continuous': True}

Yet, the action returned by TensorForce Model get_action() is:

{'action': array([  1.37754471e+02,   1.57470112e+01,   6.00896423e+02,
        -1.48294473e+00,  -2.35775032e+01,   1.75852025e+00,
         1.50085914e+00,   1.04522383e+00,   9.40244770e+00,
        -5.31497070e+02,  -7.35334206e+00,   6.55987244e+01,
        -6.53353786e+00,   4.18444443e+00,  -1.60262108e-01,
         1.29556608e+00,   1.71527648e+00,   9.04080963e+01], dtype=float32)

from tensorforce.

AlexKuhnle avatar AlexKuhnle commented on July 3, 2024

Note that the extreme values close to min_value and max_value cannot reliably be learned (at least in the current implementation).

from tensorforce.

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.