8.1_Value_representation_From_table_to_function
8.1 Value representation: From table to function
We next use an example to demonstrate the difference between the tabular and function approximation methods.
Suppose that there are states , whose state values are . Here, is a given policy. Let denote the estimates of the true state values. If we use the tabular method, the estimated values can be maintained in the following table. This table can be stored in memory as an array or a vector. To retrieve or update any value, we can directly read or rewrite the corresponding entry in the table.
We next show that the values in the above table can be approximated by a function. In particular, are shown as points in Figure 8.2. These points can be fitted or approximated by a curve. The simplest curve is a straight line, which can be described as
Here, is a function for approximating . It is determined jointly by the state and the parameter vector . is sometimes written as . Here, is called the feature vector of .
The first notable difference between the tabular and function approximation methods concerns how they retrieve and update a value.
How to retrieve a value: When the values are represented by a table, if we want to retrieve a value, we can directly read the corresponding entry in the table. However,