How to use the saliency.saliency.Saliency function in saliency

To help you get started, we’ve selected a few saliency examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gjp1203 / nui_in_madrl / drl / dqn / dqn.py View on Github external
def __init__(self, config):
        '''
        :param int agentID: Agent's ID
        :param dict config: Dictionary containing hyperparameters
        '''
        self.networks = [("cNet_", "tNet_")]
        super(DQN, self).__init__(config)
        self.getQTP1 = self.double if self.c.dqn.double == True else self.vanilla
        self.explore = EpsilonGreedy(self.cNet, config, self.sess)
        self.saliency = Saliency(config, self.cNet, self.sess)