-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
Deep Q Learning #23
Deep Q Learning #23
Conversation
There is a CartPole env implementation in pure Julia: |
Yes, the Python dependency is a bit of an issue here, but otherwise it looks great. Will review in more detail soon. |
@MikeInnes Do you have the committer bit of JuliaML? I want to drop support of julia 0.5 of Reinforce.jl... |
@iblis17 , Reinforce.jl (and OpenAIGym.jl) was my first option but I guess that's not updated. There were some issues with old functions-new functions there. |
Could you file an issue on that repo (and we can move discussion)? I want to improve it. |
Cool, I'll file an issue |
@iblis17 , #6 in |
OpenAIGym still requires PyCall 🤦. |
Ohh yes, that's where I got the idea to use PyCall! I was getting confused between I have re-implemented the model using |
Haha. I just tried to install And it will be nice if we port CartPole-v1. (but I still cannot found any detail from googling, maybe I should read the source code. |
Whereas
From CartPole-v0 and CartPole-v1 |
cartpole/cartpole.jl
Outdated
gr() | ||
|
||
#Define custom policy for choosing action | ||
type CartPolePolicy <: Reinforce.AbstractPolicy end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutable struct
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the CartPolePolicy
?
Also, would like to know the advantage that would offer. AFAIK (and I may be wrong, as I am new to Julia), mutable struct
for that would not have any fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutable struct CartPolePolicy <: Reinforce.AbstractPolicy end
Keyword type
is deprecated syntax since Julia 0.6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. Thanks for that. I've changed it now. :)
Is this still relevant, or did you move the code to flux-baselines? [I actually don't think it will be as bad to have the extra dependency on Reinforce.jl once we have a Pkg3 setup, but we can figure that out later] |
Yes, it has been moved to Flux-baselines. |
Great, let's leave it there for now then. |
Implemented DQN model on CartPole-v1