original_docstring:  Get the TensorBoard log filenames for all existing sessions.
  
          Returns
          -------
          dict
              The full path of each log file for each training session that has been run
          
docstring: Get the TensorBoard log filenames for all existing sessions.
  Returns
  
  dict
  The full path of each log file for each training session that has been run
docstring_tokens: Get the TensorBoard log filenames for all existing sessions . Returns dict The full path of each log file for each training session that has been run
code: def _get_log_filenames(self):
          """ Get the TensorBoard log filenames for all existing sessions.
  
          Returns
          -------
          dict
              The full path of each log file for each training session that has been run
          """
          logger.debug("Loading log filenames. base_dir: '%s'", self._folder_base)
          log_filenames = dict()
          for dirpath, _, filenames in os.walk(self._folder_base):
              if not any(filename.startswith("events.out.tfevents") for filename in filenames):
                  continue
              logfiles = [filename for filename in filenames
                          if filename.startswith("events.out.tfevents")]
              # Take the last log file, in case of previous crash
              logfile = os.path.join(dirpath, sorted(logfiles)[-1])
              session = os.path.split(os.path.split(dirpath)[0])[1]
              session = session[session.rfind("_") + 1:]
              if not session.isdigit():
                  logger.warning("Unable to load session data for model")
                  return log_filenames
              session = int(session)
              log_filenames[session] = logfile
          logger.debug("logfiles: %s", log_filenames)
          return log_filenames
code_tokens: def _get_log_filenames ( self ) : logger . debug ( "Loading log filenames. base_dir: '%s'" , self . _folder_base ) log_filenames = dict ( ) for dirpath , _ , filenames in os . walk ( self . _folder_base ) : if not any ( filename . startswith ( "events.out.tfevents" ) for filename in filenames ) : continue logfiles = [ filename for filename in filenames if filename . startswith ( "events.out.tfevents" ) ] logfile = os . path . join ( dirpath , sorted ( logfiles ) [ - 1 ] ) session = os . path . split ( os . path . split ( dirpath ) [ 0 ] ) [ 1 ] session = session [ session . rfind ( "_" ) + 1 : ] if not session . isdigit ( ) : logger . warning ( "Unable to load session data for model" ) return log_filenames session = int ( session ) log_filenames [ session ] = logfile logger . debug ( "logfiles: %s" , log_filenames ) return log_filenames
short_docstring: Get the TensorBoard log filenames for all existing sessions.
short_docstring_tokens: Get the TensorBoard log filenames for all existing sessions .
comment: """ Get the TensorBoard log filenames for all existing sessions.
  
          Returns
          -------
          dict
              The full path of each log file for each training session that has been run
          """$SEP$# Take the last log file, in case of previous crash