mlflow.exceptions

exception mlflow.exceptions.MlflowException(message, error_code=1, **kwargs)

MLflow 操作失败时抛出的通用异常

exception mlflow.exceptions.ExecutionException(message, error_code=1, **kwargs)[source]

Bases: mlflow.exceptions.MlflowException

执行项目失败时抛出的异常

exception mlflow.exceptions.InvalidUrlException(message, error_code=1, **kwargs)[source]

Bases: mlflow.exceptions.MlflowException

由于 URL 无效导致 HTTP 请求发送失败时抛出的异常

exception mlflow.exceptions.MissingConfigException(message, error_code=1, **kwargs)[source]

Bases: mlflow.exceptions.MlflowException

找不到预期的配置文件/目录时抛出的异常

exception mlflow.exceptions.MlflowNotImplementedException(message='')[source]

Bases: mlflow.exceptions.MlflowException

功能未实现时抛出的异常

exception mlflow.exceptions.MlflowTraceDataCorrupted(request_id: Optional[str] = None, artifact_path: Optional[str] = None)[source]

Bases: mlflow.exceptions.MlflowTraceDataException

跟踪数据损坏时抛出的异常

exception mlflow.exceptions.MlflowTraceDataException(error_code: str, request_id: Optional[str] = None, artifact_path: Optional[str] = None)[source]

Bases: mlflow.exceptions.MlflowTracingException

与跟踪数据相关的错误时抛出的异常

exception mlflow.exceptions.MlflowTraceDataNotFound(request_id: Optional[str] = None, artifact_path: Optional[str] = None)[source]

Bases: mlflow.exceptions.MlflowTraceDataException

找不到跟踪数据时抛出的异常

exception mlflow.exceptions.MlflowTracingException(message, error_code=1)[source]

Bases: mlflow.exceptions.MlflowException

跟踪逻辑中抛出的异常

一般来说,跟踪逻辑不应阻塞主执行流程,因此此异常用于区分跟踪相关错误并进行适当处理。

exception mlflow.exceptions.RestException(json)[source]

Bases: mlflow.exceptions.MlflowException

REST API 返回非 200 级响应时抛出的异常

mlflow.exceptions.get_error_code(http_status)[source]