File Exchange

image thumbnail

TIle Coding (CMAC) for reinforcement learning

version (1.85 KB) by Nick Birnie
Linear tile coding function approximation based on CMAC algorithm


Updated 06 Sep 2011

View License

Description of Tile Coding
This is an implementation of grid-style tile codings. Here we provide a procedure, "getTiles", that maps real
variables to a list of tiles.

Please see for more information.

The code is based on the accompanying material to "Reinforcment Learning - An Introduction", by Sutton & Barto.

Comments and Ratings (3)

The code is well-written, thanks!

Two suggestions:
1- You cannot use 'sum' as a variable. It is a MATLAB function.

2- It would be very nice to provide an example with the code.

The code is well-written. Thanks!

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor