    def epoch_n_from_weights_name(self, w_name):
        """
        Extracts the last epoch number from the standardized weights name.
        Only works if the weights contain 'epoch' followed by 3 integers, for example:
            some-architectureepoch023suffix.hdf5
        """
        try:
            starting_epoch = int(w_name.split('epoch')[1][0:3])
        except Exception as e:
            self.logger.warning(
                'Could not retrieve starting epoch from the weights name: \n{}'.format(w_name)
            )
            self.logger.error(e)
            starting_epoch = 0
        return starting_epoch
Extracts the last epoch number from the standardized weights name.
Only works if the weights contain 'epoch' followed by 3 integers, for example:
some-architectureepoch023suffix.hdf5
ISR/utils/train_helper.py