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

question about sampling #11

Closed
Robotuks opened this issue Aug 2, 2018 · 2 comments
Closed

question about sampling #11

Robotuks opened this issue Aug 2, 2018 · 2 comments

Comments

@Robotuks
Copy link

Robotuks commented Aug 2, 2018

Hey,

I wanted to ask about calculation in sample function.

return tf.argmax(tf.log(u) / probs, axis=1)

it divides from probs. Does that mean that lower probabilities have better chances to get picked? Better exploration???

@Robotuks Robotuks closed this as completed Aug 2, 2018
@Robotuks
Copy link
Author

Robotuks commented Aug 2, 2018

log(u) makes it negative. So everything is fine. But probs can be equal to 0, no?

@inoryy
Copy link
Owner

inoryy commented Aug 2, 2018

@Robotuks I think I ensure probs are never actually 0 somewhere (it's kind of a hack, but hey it works)

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