Code Files
What Q-table Is
Q-table is a type of q-function, just as q-network is also a type of q-function.
Q-table is the knowledge storage for classic q-learning. Q-table is still used in education but no longer effective in industry because it needs a huge a mount of computer memory to store data. Q-table stores the value of q-function for pairs of state and actions.
Q-learning on Q-table
Use this table update formula based on Bellman Equation
Q-table Init
Need to randomize to all near zero
No meaningful q values known yet. Q-table is similar to known good actions for rewards if initialized to non-zeros, thus non-zero means wrong. But need randomness for variations.