Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises

Sample code for Q-learning

Here is some sample C++ (pseudo)code for how to implement the major components of Q-learning:


How to implement vectors and the state-space as a lookup table

How to implement Q-learning

Sample implementation - the HouseRobot problem


ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.      New 250 G VPS server.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.