In the following document:
Youtube-Code-Repository/ReinforcementLearning/PolicyGradient/actor_critic/tensorflow2/main.py
Running the program returns:
File "actorcritic.py", line 157, in
agent.learn(observation, action, reward, observation, done)
TypeError: learn() takes 5 positional arguments but 6 were given
I think this could be fixed by changing the following line:
agent.learn(observation, action, reward, observation_, done)
to:
agent.learn(observation, reward, observation_, done)
Sorry for the suggestion format, first time suggesting fixes :D
In the following document: Youtube-Code-Repository/ReinforcementLearning/PolicyGradient/actor_critic/tensorflow2/main.py
Running the program returns: File "actorcritic.py", line 157, in
agent.learn(observation, action, reward, observation , done)
TypeError: learn() takes 5 positional arguments but 6 were given
I think this could be fixed by changing the following line: agent.learn(observation, action, reward, observation_, done)
to: agent.learn(observation, reward, observation_, done)
Sorry for the suggestion format, first time suggesting fixes :D