Youtube-Code-Repository icon indicating copy to clipboard operation
Youtube-Code-Repository copied to clipboard

agent.learn function action is given but not in the function

Open AndrewRiceMGW opened this issue 3 years ago • 0 comments

Traceback (most recent call last): File "main.py", line 42, in agent.learn(observation, action, reward, observation_, done) TypeError: learn() takes 5 positional arguments but 6 were given

change: def learn(self, state, reward, state_, done):

to

def learn(self, state, action, reward, state_, done):

in actor critic

AndrewRiceMGW avatar Oct 19 '20 08:10 AndrewRiceMGW