mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
1.3 KiB
1.3 KiB
Actions space: Discrete
Network Structure
Algorithmic Description
Choosing an action
- The current states (observations and measurements) and the corresponding goal vector are passed as an input to the network. The output of the network is the predicted future measurements for time-steps
t+1,t+2,t+4,t+8,t+16andt+32for each possible action. - For each action, the measurements of each predicted time-step are multiplied by the goal vector, and the result is a single vector of future values for each action.
- Then, a weighted sum of the future values of each action is calculated, and the result is a single value for each action.
- The action values are passed to the exploration policy to decide on the action to use.
Training the network
Given a batch of transitions, run them through the network to get the current predictions of the future measurements per action, and set it as the initial targets for training the network. For each transition (s_t,a_t,r_t,s_{t+1} ) in the batch, the target of the network for the action that was taken, is the actual measurements that were seen in time-steps t+1,t+2,t+4,t+8,t+16 and t+32. For the actions that were not taken, the targets are the current values.
