MCPcopy Create free account
hub / github.com/InternScience/SciReason / get_log_path

Method get_log_path

opencompass/tasks/base.py:92–101  ·  view source on GitHub ↗

Get the path to the log file. Args: file_extension (str): The file extension of the log file. Default: 'json'.

(self, file_extension: str = 'json')

Source from the content-addressed store, hash-verified

90 return f'{self.__class__.__name__}({self.cfg})'
91
92 def get_log_path(self, file_extension: str = 'json') -> str:
93 """Get the path to the log file.
94
95 Args:
96 file_extension (str): The file extension of the log file.
97 Default: 'json'.
98 """
99 return get_infer_output_path(
100 self.model_cfgs[0], self.dataset_cfgs[0][0],
101 os.path.join(self.work_dir, self.log_subdir), file_extension)
102
103 def get_output_paths(self, file_extension: str = 'json') -> List[str]:
104 """Get the paths to the output files. Every file should exist if the

Callers 6

_launchMethod · 0.80
_launchMethod · 0.80
launchFunction · 0.80
_launchMethod · 0.80
_launchMethod · 0.80
_launchMethod · 0.80

Calls 1

get_infer_output_pathFunction · 0.90

Tested by

no test coverage detected