train.py
def calculate_helpers(self):
        """Calculate helper variables for training length."""
        self._ex_per_epoch = len(self.train_files)
        self._steps_per_epoch = int(ceil(self._ex_per_epoch / float(self.batch_size)))
        self._train_length_ex = self._ex_per_epoch * self.n_epochs
        self._train_length_steps = self._steps_per_epoch * self.n_epochs

        self.logger.debug('self._ex_per_epoch: %d', self._ex_per_epoch)
        self.logger.debug('self._steps_per_epoch: %d', self._steps_per_epoch)
        self.logger.debug('self._train_length_ex: %d', self._train_length_ex)
        self.logger.debug('self._train_length_steps: %d', self._train_length_steps)
Calculate helper variables for training length.
Calculate helper variables for training length.
Calculate helper variables for training length .
def calculate_helpers(self):
        self._ex_per_epoch = len(self.train_files)
        self._steps_per_epoch = int(ceil(self._ex_per_epoch / float(self.batch_size)))
        self._train_length_ex = self._ex_per_epoch * self.n_epochs
        self._train_length_steps = self._steps_per_epoch * self.n_epochs
        self.logger.debug('self._ex_per_epoch: %d', self._ex_per_epoch)
        self.logger.debug('self._steps_per_epoch: %d', self._steps_per_epoch)
        self.logger.debug('self._train_length_ex: %d', self._train_length_ex)
        self.logger.debug('self._train_length_steps: %d', self._train_length_steps)
def calculate_helpers ( self ) : self . _ex_per_epoch = len ( self . train_files ) self . _steps_per_epoch = int ( ceil ( self . _ex_per_epoch / float ( self . batch_size ) ) ) self . _train_length_ex = self . _ex_per_epoch * self . n_epochs self . _train_length_steps = self . _steps_per_epoch * self . n_epochs self . logger . debug ( 'self._ex_per_epoch: %d' , self . _ex_per_epoch ) self . logger . debug ( 'self._steps_per_epoch: %d' , self . _steps_per_epoch ) self . logger . debug ( 'self._train_length_ex: %d' , self . _train_length_ex ) self . logger . debug ( 'self._train_length_steps: %d' , self . _train_length_steps )
Calculate helper variables for training length.
Calculate helper variables for training length .
"""Calculate helper variables for training length."""
self