8000 GitHub - voaneves/colab-rl: Keras implementation of the latest Reinforcement Learning algorithms, ready to use in Google Colab. · GitHub
[go: up one dir, main page]

Skip to content
voanevesPublic

About

Keras implementation of the latest Reinforcement Learning algorithms, ready to use in Google Colab.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

colab-rl logo: two circular arrows forming a feedback loop, with a red dot for the reward

colab-rl

Keras reinforcement learning agents you can train in Google Colab, starting with DQN.
Notebooks ready to run in the cloud

View landing page Open the CartPole notebook

Need something like this? Let's talk →

MIT License Keras and DQN Open issues

About · Features · Notebooks · Contributing · To do · Contact

About the project

Train a deep reinforcement learning agent on your own task, using Keras code that is ready to run in Google Colab.

Note

Looking for the modern Keras 3 RL benchmark? Visit the active successor voaneves/snake-arena — comparing 14 RL algorithms in one vectorized NumPy simulator with 1,383 automated tests and 25 Colab/Kaggle notebooks. This repository remains preserved as the 2018–2023 TensorFlow/Keras notebook archive.

The project provides a Keras implementation of Deep Q-Networks that researchers and practitioners can use to train and evaluate agents on different environments. PPO and A2C are not implemented here yet; the only related code is the CartPole actor-critic notebook below.

Features

  • DQN in Keras: models/dqn.py, with prioritized experience replay (sum tree), noisy dense layers and benchmarked variants under models/benchmarking_models/.
  • Google Colab ready: notebooks run in Colab, so you can experiment and train with cloud resources.
  • Customizable and extensible: the code is designed to be modified and adapted to your own tasks.

Notebooks

The notebooks/ folder also holds experiments from other projects. To train DQN locally on Snake, run python run_dqn.py (see the snake-on-pygame README).

Contributing

Contributions are welcome. If you would like to add algorithms, improve existing implementations or help in any other way:

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-branch.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push the changes to your fork: git push origin my-branch.
  5. Open a pull request and describe the changes you made.

To do

  • Improve the "Notebooks" section of this README.
  • Review all notebooks to check which ones still work.

Contact

Let's talk voaneves.com

LinkedIn · E-mail

VOANEVES mark

Released under the MIT License.

↑ Back to top

About

Keras implementation of the latest Reinforcement Learning algorithms, ready to use in Google Colab.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0