Giter Club home page Giter Club logo

gymexperiments's People

Contributors

strangetcy avatar tambetm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gymexperiments's Issues

appear twice error

with mujoco: when run a long time, programe is crack.

1
For comparison, real replay memory contains 21739 experiences
WARNING: Nan, Inf or huge value in QACC at DOF 0. The simulation is unstable. Time = 0.1200.

Performing imagination rollout for 5 steps
Traceback (most recent call last):
File "naf_ir.py", line 255, in
postobs, rewards, terminals = ir_model.predict(preobs, actions, timesteps + i)
File "/home/ubuntu/work/gymexperiments/irmodel.py", line 105, in predict
obsmeans = obsmodel.predict(X)[0]
File "/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 200, in predict
return self._decision_function(X)
File "/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 183, in _decision_function
X = check_array(X, accept_sparse=['csr', 'csc', 'coo'])
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 398, in check_array
_assert_all_finite(array)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 54, in _assert_all_finite
" or a value too large for %r." % X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

2
Done fitting, 200 timesteps covered.
Performing imagination rollout for 5 steps
Done, fictional replay memory now contains 100000 experiences
For comparison, real replay memory contains 21001 experiences
WARNING: Nan, Inf or huge value in QACC at DOF 0. The simulation is unstable. Time = 0.0900.

Performing imagination rollout for 5 steps
Traceback (most recent call last):
File "naf_ir.py", line 255, in
postobs, rewards, terminals = ir_model.predict(preobs, actions, timesteps + i)
File "/home/ubuntu/work/gymexperiments/irmodel.py", line 105, in predict
obsmeans = obsmodel.predict(X)[0]
File "/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 200, in predict
return self._decision_function(X)
File "/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 183, in _decision_function
X = check_array(X, accept_sparse=['csr', 'csc', 'coo'])
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 398, in check_array
_assert_all_finite(array)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 54, in _assert_all_finite
" or a value too large for %r." % X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

license?

Hi! Is there any chance you would be open to licensing this repo? I'd really like to tinker with your implementation of NAF.

run in gpu error

Fitting imagination rollout model...
Done fitting, 200 timesteps covered.
Performing imagination rollout for 5 steps
Traceback (most recent call last):
File "naf_ir.py", line 255, in
postobs, rewards, terminals = ir_model.predict(preobs, actions, timesteps + i)
File "/home/ubuntu/gymexperiments/irmodel.py", line 107, in predict
postob = np.random.multivariate_normal(obsmeans, obscov)
File "mtrand.pyx", line 4689, in mtrand.RandomState.multivariate_normal (numpy/random/mtrand/mtrand.c:32216)
ValueError: mean must be 1 dimensional

do you run this code in gpu?

before i am run it in cpu is ok! gpu server the theano is update to git latest version,maybe some lib conflict

A2C or A3C?

Hi, I am learning how to implement RL algorithms and I found your code very intuitive. My only confusion is with the multiprocessing of your A2C implementation. I am not very familiar with Python multiprocessing, but is this synchronous or asynchronous? I can't find the logic in the code that causes the runners to synchronize before updating the trainer.

Also, if you would not mind helping me understand the implementation differences better, can you tell me whether this approach of using multiple processes of copied agent models is better in terms of performance or training time than the alternative approach of parallelizing multiple copies of the environment and executing only one model (as in the OpenAI baseline)?

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.