philtabor / Youtube-Code-Repository

Repository for most of the code from my YouTube channel
859 stars 479 forks source link

Faster Q value update for DDDQN - TF 2 #35

Open maxzuo opened 3 years ago

maxzuo commented 3 years ago

Faster implementation for calculating q_target for training the DDDQN - in your video you mention the slow speed at which it runs. With this small change, it should run significantly faster. I've tested it using np.array_equal and produces the same results as the original method.

maxzuo commented 2 years ago

@philtabor I'd appreciate it if you get a chance to take a look, it's a pretty small PR but the bump in performance is quite noticeable. Thanks.