Skip to content

Commit

Permalink
call super recompile_model
Browse files Browse the repository at this point in the history
  • Loading branch information
kengz committed Apr 9, 2017
1 parent c5cd7b5 commit 9e141e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rl/agent/double_dqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def recompile_model(self, sys_vars):
'''rotate and recompile both models'''
if self.epi_change_lr is not None:
self.switch_models() # to model_2
self.recompile_model(sys_vars)
super(DoubleDQN, self).recompile_model(sys_vars)
self.switch_models() # back to model
self.recompile_model(sys_vars)
super(DoubleDQN, self).recompile_model(sys_vars)
return self.model

def compute_Q_states(self, minibatch):
Expand Down

0 comments on commit 9e141e5

Please sign in to comment.