Code and Results for Chapter 8:
Introduction:
These are results and code for the
problems and examples found in Chapter 8 of this famous book.
Various Figures and Problems:
- Using Coarse Coding to Approximate a Step Function
- The Mountain Car Example:
- Driver scripts to run the examples (run GetTiles_Mex_Script.m to create the needed MEX interface to GetTiles):
- Sample output produced from the above codes (plot of -max_a Q_t(s,a))
- Component code called from the above driver functions:
- GetTiles_Mex.C (a Matlab MEX wrapper to Dr. Sutton's tiling software GetTiles)
- tiles.C (Dr. Sutton's tiling software in double precision)
- tiles.h (Dr. Sutton's tiling software in double precision)
- mnt_car_learn.m: Learns the mountaintop example. Special thanks to Paul Fackler for finding a bug that was vastly slowing the code down.
- get_ctg.m (extracts the cost to go function)
- ret_q_in_st.m (returns the action-function for the given state)
- next_state.m (returns the action-function for the given state)
- Learning Rates for the Mountain Car Example (Replacement vs. Accumulate Traces):
John Weatherwax