Message Boards Message Boards

Implementing Deep Q-Networks (DQN) algorithm

Attachments:
POSTED BY: Mikel Landajuela
3 Replies

I get some immediate errors when training, but if I change this line:

<|"Measurement"->Function[N[#BatchData["score"]][[1]]],"Key"->"Score"|>

to this:

<|"Measurement"->Function[N[#BatchData["score"]]],"Key"->"Score"|>

it works. (and it seems pretty clear from the code above that the "score" is a real number)

However, the trained agent doesn't seem to do very well on my 2018 MacBook pro. Twice it hung (although after manually stopping, the agent does pretty well), and once it finished but failed to hold up the cart pole (image attached). enter image description here

POSTED BY: Peter Barendse

I’ve tried running this on a couple of different (powerful) PCs, but failed in each case. It seems to hang part way through the NetTrain evaluation.

POSTED BY: Jonathan Kinlay

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract