libs/data/mass.py
def _load_data(self, verbose):
        """Loads data either from a checkpoint or from scratch."""
        if self.load_checkpoint and self._exists_checkpoint():
            if verbose:
                print('Loading from checkpoint... ', flush=True, end='')
            data = self._load_from_checkpoint()
        else:
            if verbose:
                if self.load_checkpoint:
                    print("A checkpoint doesn't exist at %s."
                          " Loading from source instead." % self.ckpt_file)
                else:
                    print('Loading from source.')
            data = self._load_from_source()
        if verbose:
            print('Loaded')
        return data
Loads data either from a checkpoint or from scratch.
Loads data either from a checkpoint or from scratch.
Loads data either from a checkpoint or from scratch .
def _load_data(self, verbose):
        if self.load_checkpoint and self._exists_checkpoint():
            if verbose:
                print('Loading from checkpoint... ', flush=True, end='')
            data = self._load_from_checkpoint()
        else:
            if verbose:
                if self.load_checkpoint:
                    print("A checkpoint doesn't exist at %s."
                          " Loading from source instead." % self.ckpt_file)
                else:
                    print('Loading from source.')
            data = self._load_from_source()
        if verbose:
            print('Loaded')
        return data
def _load_data ( self , verbose ) : if self . load_checkpoint and self . _exists_checkpoint ( ) : if verbose : print ( 'Loading from checkpoint... ' , flush = True , end = '' ) data = self . _load_from_checkpoint ( ) else : if verbose : if self . load_checkpoint : print ( "A checkpoint doesn't exist at %s." " Loading from source instead." % self . ckpt_file ) else : print ( 'Loading from source.' ) data = self . _load_from_source ( ) if verbose : print ( 'Loaded' ) return data
Loads data either from a checkpoint or from scratch.
Loads data either from a checkpoint or from scratch .
"""Loads data either from a checkpoint or from scratch."""
self
verbose