TabularPredictor.load_log

classmethod TabularPredictor.load_log(predictor_path: str = None, log_file_path: str | None = None) list[str][source]

加载预测器的日志文件

参数:
  • predictor_path (可选[str], 默认为 None) – 要加载日志的预测器的路径。当预测器使用 log_file_path=”auto” 初始化时,可以使用此参数自动获取日志文件

  • log_file_path (可选[str], 默认为 None) – 日志文件的路径。如果在初始化预测器时指定了 log_file_path,则应使用 log_file_path 加载日志文件。必须指定 predictor_pathlog_file_path 中的至少一个

返回值:

包含日志文件行的列表

返回类型:

list[str]