Пример #1
0
 def giveReward(self, r):
     PolicyGradientAgent.giveReward(self, r)
     if self.actaspg:
         self.explorationlayer.drawRandomWeights()
Пример #2
0
 def getAction(self):
     self.explorationlayer.setState(self.lastobs)
     action = PolicyGradientAgent.getAction(self)
     return action