Skip to content

Implementation of model-free reinforcement learning to learn the correct policy in a Markov Decision Process. The input to the program is a Markov Decision Process and the program will learn what to do through experimentation.

Notifications You must be signed in to change notification settings

kaushal1120/ReinforcementLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Reinforcement Learning:
1. The main function in java file Executor.java in package ai.mdp.rl runs the Reinforcement Learning program.
2. The input for this program is defined in ReinforcementLearning-master/src/input_files/mdp_input.txt. Replace the contents
of this input file to run reinforcement learning on any other input.

To run the above program:
1. Unzip ReinforcementLearning-master.zip.
2. cd ReinforcementLearning-master
3. Replace the contents of src/input_files/mdp_input.txt to change the input on which the program is run.

Commands to run the above program on Windows:

dir /s /B *.java > sources.txt (To populate a list of .java files in a single file sources.txt)
javac -d classes @sources.txt (To compile the java files populated in sources.txt)
java -cp classes ai.mdp.rl.Executor (To run Executor.java)

Commands to run the above programs on Linux/Mac

find . -name "*.java" > sources.txt (To populate a list of .java files in a single file sources.txt)
mkdir classes
javac -d classes @sources.txt (To compile the java files populated in sources.txt)
java -cp classes ai.mdp.rl.Executor (To run Executor.java)

About

Implementation of model-free reinforcement learning to learn the correct policy in a Markov Decision Process. The input to the program is a Markov Decision Process and the program will learn what to do through experimentation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages