Comments (5)
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.
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.
Will do this via Beta distribution
from tensorforce.
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.
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)
- lstm+ppo
- Gym envirnoment broken: 'dict' object has no attribute 'env_specs HOT 3
- Issues installing Tensorforce from pip on Python 3.10
- is it still active? HOT 2
- How to change epsilon value when using epsilon-greedy policy? HOT 2
- Can I customize the loss function?
- Saver documentation inconsistent with example
- End-to-end data collection and policy updates on the GPU possible with tensorforce
- how to modify the loss function of the value network in PPO
- AttributeError: 'Adam' object has no attribute '_create_all_weights' HOT 3
- Why different models performs the same HOT 1
- AttributeError: type object 'Module' has no attribute '_MODULE_STACK' HOT 1
- tensorforce.exception.TensorforceError: Invalid value for variable argument spec: TensorSpec HOT 1
- Comparison of "online" and "offline" agent-enviroment interactions
- error creating an agent
- TypeError: CCompiler_spawn() got an unexpected keyword argument 'env' HOT 2
- A minimal example of custom Environment fails on protobuf or dtensor import from tensorflow.compat.v2.experimental HOT 6
- How to specify min_value and max_value in a custom environment when shape of the state is a vector? HOT 1
- Does Runner.run perform training given it never invokes agent.experience(...) ? HOT 1
- logging to logdir for tensorboard? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorforce.