Skip to content

An implementation of a simple kind of Free Energy based Reinforcement Learning

License

Notifications You must be signed in to change notification settings

Ktakuya332C/FERL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FERL

An implementation of the simplest kind of Free Energy based Reinforcement Learning (FERL) algorithm. Especially, this repository implements the Large Action Task described in the following literature.

  • Brian Sallans, Geoffrey E. Hinton (2004), Reinforcement Learning with Factored States and Actions, J. Mach. Learn. Res., 1063-1088

Requirements

  • preferably, python 2.7
  • starndard scientific computing libraries like numpy, scipy, matplotlib
  • tqdm

Execution

cd FERL
python sim.py

will execute a script, and save result.png in the current folder. The picture shows average rewards per 1000 epochs acquired by an agent in the simulation.

Notes

  • The implementation of the Large Action Task described in the original literature differs from this implementation. In the original literature, the current state is randomly generated, but in this implementation, the state is randomly chosen only from the predefined key states. I tried to reproduce the original implementation many times, but I could not make it work.
  • Learning rate used in this implementation is different from the literature because Q value diverges when I set the same learning rate to the literature.

About

An implementation of a simple kind of Free Energy based Reinforcement Learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages