GithubHelp home page GithubHelp logo

dtiarks / ddpg_agent Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 15 KB

Tensorflow implementation of the DDPG algorithm

License: MIT License

Python 100.00%
reinforcement-learning machine-learning openai-gym tensorflow ddpg-algorithm

ddpg_agent's Introduction

Tensorflow implementation of the DDPG algorithm

This is a reimplementation of the work presented in

Paper

Continuous control with deep reinforcement learning https://arxiv.org/abs/1509.02971

Some examples:

  • Hopper environment

Hopper

  • Walker environment

Hopper

  • Lunar Lander environment

Hopper

ddpg_agent's People

Contributors

dtiarks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ddpg_agent's Issues

AttributeError: 'DDPGAgent' object has no attribute 'train_writer'

When i run ddpg_agent.py i get an error:
2019-03-27 01:12:47.773075: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-03-27 01:12:47.776984: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2904000000 Hz
2019-03-27 01:12:47.777137: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x555af9008f00 executing computations on platform Host. Devices:
2019-03-27 01:12:47.777191: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): ,
WARNING:tensorflow:From /home/greta/anaconda3/envs/ddpg/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From ddpg_agent.py:151: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
Traceback (most recent call last):
File "ddpg_agent.py", line 360, in
ddpga=DDPGAgent(sess,env,params)
File "ddpg_agent.py", line 76, in init
os.mkdir(self.traindir)
FileNotFoundError: [Errno 2] No such file or directory: './train_dir/run_270319_011248'
Exception ignored in: <function DDPGAgent.del at 0x7fc5a0973950>
Traceback (most recent call last):
File "ddpg_agent.py", line 104, in del
self.train_writer.close()
AttributeError: 'DDPGAgent' object has no attribute 'train_writer'

Can't figure out what is the issue.

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.