Skip to content

Implementation of DQN using just Numpy (SFC project)

Notifications You must be signed in to change notification settings

LachubCz/DQN-using-Numpy

Repository files navigation

Implementation of DQN using just Numpy

Build Status Codacy Badge

Application implements DQN using just Numpy. Thereafter the DQN agent is adapted for the FrozenLake environment, which is also implemented using just Numpy.

Usage

python3 q_learning.py [-mode mode] [-r_mode r_mode] [-model model]
Parameters:
-mode {train, test}            |  application mode
-r_mode {map, weights, stats}  |  vizualization mode
-model MODEL                   |  filename of trained model for testing mode

Examples

python3 q_learning.py -mode train -r_mode map
python3 q_learning.py -mode train -r_mode weights
python3 q_learning.py -mode train -r_mode stats
python3 q_learning.py -mode test -model model.pkl

Training modes

Map mode shows agent's moves in the FrozenLake environment during learning.

Weights mode shows Q-values for every state-action pair during training.

Stats mode prints outcomes of training episodes.


Created by: Petr Buchal

About

Implementation of DQN using just Numpy (SFC project)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages