philtabor / Youtube-Code-Repository

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

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

Open AndrewRiceMGW opened 3 years ago

AndrewRiceMGW commented 3 years ago

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