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

Updated DQN CartPole example to utilise Gym's Space types #142

Merged
merged 8 commits into from Jun 27, 2019

Conversation

kraftpunk97-zz
Copy link
Contributor

@kraftpunk97-zz kraftpunk97-zz commented Jun 7, 2019

The DQN example which uses the CartPole environment has been updated to stop converting the actions (Discrete(2)) to {-1, 1}. Please refer to this PR for more details.

The DQN example for the CartPole environment and the environment itself has been updated to stop converting the actions (`Discrete(2)`) to `{-1, 1}`. Please refer to this [PR](FluxML/Gym.jl#29) for more details
@kraftpunk97-zz kraftpunk97-zz changed the title Updated example to utilise Gym's Space types Updated DQN CartPole example to utilise Gym's Space types Jun 7, 2019
This change fixes an error I got and which seems to be due to the multiplication with 0.1 (Float64) converting the array to Array{Float64}
@MikeInnes MikeInnes requested a review from tejank10 June 10, 2019 12:45
@MikeInnes
Copy link
Member

Bump @tejank10

@tejank10
Copy link
Contributor

Also updated the DQN example to use zygote

@MikeInnes
Copy link
Member

@tejank10 feel free to merge if you're happy with it (or lmk if you need commit).

@tejank10 tejank10 merged commit a544d2f into FluxML:master Jun 27, 2019
@tejank10
Copy link
Contributor

Thanks, @kraftpunk97!

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

Successfully merging this pull request may close these issues.

None yet

5 participants