Giter Club home page Giter Club logo

apf_rl's Introduction

Requirements

Python 3.10
Tensorflow 2.14.0
tensorlayer 2.2.5
gym==0.26.0
pygame==2.1.0

File description

  • gym_examples/: Custom Environment: The agent (blue dot) navigates through both static and dynamic obstacles (black) to reach the goal (green).
  • dqn_variants/: The folder that stores the model weights in each episode.
  • gym_examples/envs/grid_world.py: The detailed implementation of the env grid_world.
  • DQN_variant.py: Main file, enhancing DQN with APF for Accelerated Training.
  • prioritized_memory.py: Prioritized Experience Replay (PER) based on SumTree.
  • SumTree.py: Data structure utilized for sampling replay buffer based on TD-errors.

Results

"We demonstrate tricks to accelerate DQN convergence, emphasizing improved sampling from the replay buffer. For instance, we enhance successful episode ratios during exploration using APF. Meanwhile, PER prioritizes samples with higher TD-errors based on the SumTree, while avoiding overfitting caused by greedy strategy."

Run

python DQN_variant.py    # for training
python DQN_variant.py --mode test --save_path /path/to/your/model      # for testing

After about 9000 episodes, the performance is shown as follows:

result

apf_rl's People

Contributors

bithuanglq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

godsddup

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.