Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个引发异常的 Mlflow 项目。我使用 执行该功能mlflow.run,但我得到mlflow.exceptions.ExecutionException("Run (ID '<run_id>') failed").
mlflow.run
mlflow.exceptions.ExecutionException("Run (ID '<run_id>') failed")
有什么办法可以得到我正在执行的地方引发的异常mlflow.run?
或者是否可以mlflow.exceptions.ExecutionException从项目内发送带有自定义消息集的消息?
mlflow.exceptions.ExecutionException
不幸的是,目前没有。mlflow run 启动一个新进程,目前没有用于异常传递的协议。通常,其他项目甚至不必使用相同的语言。
我能想到的一种解决方法是通过设置运行标记通过 mlflow 传递异常。例如:
try: ... except Exception as ex: mlflow.set_tag("exception", str(ex))