Fixed a minor bug
This commit is contained in:
parent
2b1140e85f
commit
b3a252d970
@ -374,13 +374,13 @@ class Agent:
|
||||
)
|
||||
)
|
||||
|
||||
state = next_state
|
||||
|
||||
# Only train the network if we have enough
|
||||
# transitions in memory to do so.
|
||||
if len(self.memory) >= self.BATCH_SIZE:
|
||||
|
||||
state = next_state
|
||||
|
||||
|
||||
# Run optimizer
|
||||
self._optimize()
|
||||
|
||||
|
Reference in New Issue
Block a user