(self, actions, reward)
return cost
learn
learn
learn
def learn(self, actions, reward):
        """
            learn
        """
        (actions_to, actions_ad) = actions
        feed_dict = {'input': self.inputs_data, 'actions_to': actions_to,
                     'actions_ad': actions_ad, 'rewards': reward}
        cost = self.fluid_executor.run(
                self.train_program, feed=feed_dict, fetch_list=[self.cost])[0]
        self.global_step += 1
        return cost
def learn ( self , actions , reward ) : ( actions_to , actions_ad ) = actions feed_dict = { 'input' : self . inputs_data , 'actions_to' : actions_to , 'actions_ad' : actions_ad , 'rewards' : reward } cost = self . fluid_executor . run ( self . train_program , feed = feed_dict , fetch_list = [ self . cost ] ) [ 0 ] self . global_step += 1 return cost