actor_critic icon indicating copy to clipboard operation
actor_critic copied to clipboard

Something about the source code

Open fengredrum opened this issue 7 years ago • 6 comments

Hi Siraj, great coding ever! However, I wonder the code in line 145 actor_target_weights = self.target_critic_model.get_weights() should it be actor_target_weights = self.target_actor_model.get_weights() ? And in line 153, would it be critic_target_weights = self.target_critic_model.get_weights() ? Cheerio!

fengredrum avatar Dec 20 '17 00:12 fengredrum

On that same note, line 157 should also be changed: from 157: self.critic_target_model.set_weights(critic_target_weights) to 157: self.target_critic_model.set_weights(critic_target_weights)

The reason that bug is never picked up is that the code never updates the target models aka update_target() never gets call. Is there a reason to use target models but never update them? Looking at the code, update_target() uses the target models but those models are never updated.

SamuelLarkin avatar Jan 11 '18 16:01 SamuelLarkin

Same question there! :)

boubakerwa avatar Feb 05 '18 03:02 boubakerwa

Same problem here. Not quite understanding why the target is used if it's not being updated.

rahulraw avatar Feb 09 '18 22:02 rahulraw

the code is not right.

vergilus avatar Mar 30 '18 03:03 vergilus

@vergilus agreed!

AloshkaD avatar Jul 20 '18 22:07 AloshkaD

do we need two actor and two critic model for reducing co-variance among the updates ??? can someone please explain.

priyabundela avatar Mar 28 '19 06:03 priyabundela