use guiding agent
This commit is contained in:
@ -115,7 +115,9 @@ class QLearningAgent(ReinforcementAgent):
|
||||
return None
|
||||
|
||||
if util.flipCoin(self.epsilon):
|
||||
return random.choice(legalActions)
|
||||
# return random.choice(legalActions)
|
||||
# now using guiding agent
|
||||
return self.guiding_agent.getAction(state)
|
||||
else:
|
||||
return self.computeActionFromQValues(state)
|
||||
|
||||
|
Reference in New Issue
Block a user