    def _weights_name(self, callback_paths):
        """ Builds the string used to name the weights of the training session. """
        
        w_name = {
            'generator': callback_paths['weights']
                         / (self.basename + '{metric}_epoch{epoch:03d}.hdf5')
        }
        if self.discriminator:
            w_name.update(
                {
                    'discriminator': callback_paths['weights']
                                     / (self.discriminator.name + '{metric}_epoch{epoch:03d}.hdf5')
                }
            )
        return w_name
Builds the string used to name the weights of the training session.
ISR/utils/train_helper.py