Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please explain the reason behind a line of code #7

Open
zhoujingzhe opened this issue Oct 17, 2018 · 1 comment
Open

Could you please explain the reason behind a line of code #7

zhoujingzhe opened this issue Oct 17, 2018 · 1 comment

Comments

@zhoujingzhe
Copy link

q = np.sum(np.multiply(z_concat, np.array(self.z)), axis=1)
what is the point in this code when you design which action is optimal?

@olavbm
Copy link

olavbm commented Oct 20, 2018

AFAIK, this line of code convolves the output distribution(z_concat) with the distribution-atoms(self.z).
Resulting in the Q-value for an action in a state.
As this is done in vectorized numpy code, the resulting variable, q, holds all q-values for all actions in all states in the batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants