Set random seed for numpy and tensorflow packages

def _set_seed(self):
        """ Set random seed for numpy and tensorflow packages """
        if self.flags['SEED'] is not None:
            tf.set_random_seed(self.flags['SEED'])
            np.random.seed(self.flags['SEED'])