Skip to content

Self-brewed code from the Deep Reinforcement Learning in Action book from Manning, Inc

License

Notifications You must be signed in to change notification settings

Maverobot/deep_reinforcement_learning_in_action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deep_reinforcement_learning_in_action

Self-brewed code from the Deep Reinforcement Learning in Action book from Manning, Inc

Requirements

gcc-9

Install gcc-9:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9

Set gcc-9 to be the default gcc:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
sudo update-alternatives --config gcc
# And make sure gcc-9 is the default

gym

git clone https://github.com/openai/gym-http-api
cd gym-http-api
pip install -r requirements.txt

Build

git clone https://github.com/Maverobot/deep_reinforcement_learning_in_action.git
cd deep_reinforcement_learning_in_action
mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build . -- -j4

Examples

Deep Q-learning for grid world

cd deep_reinforcement_learning_in_action
./dq_learning

Policy gradient for CartPole problem

Start gym

cd gym-http-api
python gym_http_server.py

Start policy gradient

cd deep_reinforcement_learning_in_action
./policy_gradient

About

Self-brewed code from the Deep Reinforcement Learning in Action book from Manning, Inc

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published