examples icon indicating copy to clipboard operation
examples copied to clipboard

A3C instead of actor-critic in reinforcement_learning/reinforce.py

Open susht3 opened this issue 8 years ago • 1 comments

There is the code of reinforce.py for action, r in zip(self.saved_actions, rewards): action.reinforce(r)

And there is the code of actor-critic.py: for (action, value), r in zip(saved_actions, rewards): reward = r - value.data[0,0] action.reinforce(reward) value_loss += F.smooth_l1_loss(value, Variable(torch.Tensor([r])))

So i consider it is Asynchronous Advantage Actor-Critic, A3C, not Actor-critic

susht3 avatar Apr 24 '17 07:04 susht3

Yes, I'm partly agree with you, but with a small correction, the algorithm implemented should be an offline version A2C(Advantage Actor Critic).

jeasinema avatar Oct 31 '17 08:10 jeasinema