Skip to content

samlanka/RevEnggPolicy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

RevEngg_Policy

The Jupyter notebook provides a tabular Q-learning algorithm for OpenAI FrozenLake8x8 Environment. The environment is modified to make the actions determinstic. This functions as a deterministic policy, gridworld environment.

Prerequisites: OpenAI Gym

To find the optimal forward policy, execute the RevEngg_pol.ipynb as is.

For the reverse policy, modify the following file in your gym source folder:- .../python2.7/site-packages/gym/envs/toy_text/frozen_lake.py

Change the 8x8 map by swapping the positions of 'S' and 'G'

    "SFFFFFFF",               
    "FFFFFFFF",
    "FFFHFFFF",
    "FFFFFHFF",
    "FFFHFFFF",
    "FHHFFFHF",
    "FHFFHFHF",
    "FFFHFFFG"
    
    changes to
    
    "GFFFFFFF",
    "FFFFFFFF",
    "FFFHFFFF",
    "FFFFFHFF",
    "FFFHFFFF",
    "FHHFFFHF",
    "FHFFHFHF",
    "FFFHFFFS"

Increase the number of episodes and execute RevEngg_pol.ipynb to find optimal reverse policy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published