Skip to content

Commit

Permalink
Merge pull request #205 from mysl/master
Browse files Browse the repository at this point in the history
fix LinearFA_Agent batch mode learn method.
  • Loading branch information
schaul committed Dec 17, 2017
2 parents 0d5db0c + d2eb8bd commit dcdf32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybrain/rl/agents/linearfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def learn(self):
return
for seq in self.history:
for obs, action, reward in seq:
if self.laststate is not None:
if self.lastobs is not None:
self.learner._updateWeights(self.lastobs, self.lastaction, self.lastreward, obs)
self.lastobs = obs
self.lastaction = action[0]
Expand Down

0 comments on commit dcdf32b

Please sign in to comment.