Git Product home page Git Product logo

emdqn's Introduction

Code for the paper "Episodic Memory Deep Q-Networks" by Zichuan Lin, Tianqi Zhao, Guangwen Yang and Lintao Zhang

If you use this code in your research, please cite the following paper:

@article{lin2018episodic,
  title={Episodic Memory Deep Q-Networks},
  author={Lin, Zichuan and Zhao, Tianqi and Yang, Guangwen and Zhang, Lintao},
  journal={arXiv preprint arXiv:1805.07603},
  year={2018}
}

Install

You can install it by typing:

cd emdqn;
pip install -e .

Run emdqn

cd emdqn/baselines/deepq/experiments/atari;
python train.py --emdqn

emdqn's People

Contributors

linzichuan 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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

emdqn's Issues

Monitoring and plotting results

Hi, do you have an usage example for plotting results with this code? If I don't use Container from the azure_util module then only a text file with timesteps and averaged reward would be saved.

Edit: I figured out about results logging with SimpleMonitor but I would appreciate an use case of saving and logging with Container.
Thank you kindly!

Dan

Bug of wrappers

Hi, there can be a bug in wrappers. When I first ran the code, I got the following bug.
截屏2020-10-13 下午7 55 51
I found the reason is that wrapper' s attributions, '_reset', '_step' , are not used at all. This might because of different gym version (they change '_reset' to 'reset'). Finally, I fix the bug by setting all '_reset' , '_step', to 'reset' , 'step' in baselines/common/atari_wrappers_deprecated.py.

Can you report the exact version of gym and fix this bug ?

Thanks!

Error in train_cartpole.py

Hello LinZichuan,

I tried your train_cartpole.py, but got:

Traceback (most recent call last):
File "train_cartpole.py", line 31, in
main()
File "train_cartpole.py", line 24, in main
callback=callback
File "c:\emdqn-master\baselines\deepq\simple.py", line 235, in learn
td_errors = train(obses_t, actions, rewards, obses_tp1, dones, weights)
File "c:\emdqn-master\baselines\common\tf_util.py", line 442, in call
assert inpt in self.givens, "Missing argument " + inpt_name
AssertionError: Missing argument qec

   Thanks for your help!

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.