Description Usage Arguments Value
This function updates the Q-table values by calling the functions
updateQRL
which updates the Q$R
and Q$L
values,
updateQsecondState
, which updates the second state Q-values,
and updateQthirdState
, which updates the third state Q-values.
1 | updateQtable(state, action, reward, alpha = 0.1, gamma = 0.9)
|
state |
The state the agent is currently in. |
action |
The action (right or left) an agent performs. |
reward |
The reward an agent receives at the current state. |
alpha |
The learning rate alpha. |
gamma |
The temporal discounting factor gamma. |
Updated Q-values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.