(self)
Saving intermediate results to file.
Saving intermediate results to file.
Saving intermediate results to file .
def save(self):
        """Saving intermediate results to file."""
        if self._saving_dir is None:
            return
        f = open(os.path.join(self._saving_dir, self._saving_file_name), 'wb')
        pickle.dump(self, f)
        f.close()
def save ( self ) : if self . _saving_dir is None : return f = open ( os . path . join ( self . _saving_dir , self . _saving_file_name ) , 'wb' ) pickle . dump ( self , f ) f . close ( )