在我的Azure ML管道中,有一个PythonScriptStep正在处理一些数据。我需要访问Azure ML Logger来跟踪步骤中的指标,因此我尝试导入get_azureml_Logger,但这太失败了。我不确定需要通过pip安装什么依赖项
from azureml.logging import get_azureml_logger
ModuleNotFoundError: No module named 'azureml.logging'
我遇到了一个类似的post,但它涉及Azure笔记本。不管怎样,我尝试将该blob添加到我的pip依赖项中,但由于一个Auth错误而失败
Collecting azureml.logging==1.0.79 [91m ERROR: HTTP error 403 while getting
https://azuremldownloads.blob.core.windows.net/wheels/latest/azureml.logging-1.0.79-py3-none-any.whl?sv=2016-05-31&si=ro-2017&sr=c&sig=xnUdTm0B%2F%2FfknhTaRInBXyu2QTTt8wA3OsXwGVgU%2BJk%3D
[0m91m ERROR: Could not install requirement azureml.logging==1.0.79 from
https://azuremldownloads.blob.core.windows.net/wheels/latest/azureml.logging-1.0.79-py3-none-any.whl?sv=2016-05-31&si=ro-2017&sr=c&sig=xnUdTm0B%2F%2FfknhTaRInBXyu2QTTt8wA3OsXwGVgU%2BJk%3D
(from -r /azureml-environment-setup/condaenv.g4q7suee.requirements.txt
(line 3)) because of error 403 Client Error:
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. for url:
https://azuremldownloads.blob.core.windows.net/wheels/latest/azureml.logging-1.0.79-py3-none-any.whl?sv=2016-05-31&si=ro-2017&sr=c&sig=xnUdTm0B%2F%2FfknhTaRInBXyu2QTTt8wA3OsXwGVgU%2BJk%3D
我不确定如何继续,我需要做的就是在步骤中记录度量
查看ScriptRunConfig Section of the Monitor Azure ML experiment runs and metrics
ScriptRunConfig
的工作原理与PythonScriptStep
的工作原理相同习惯用法通常是在
PythonScriptStep
的脚本中包含以下内容:旁注:您不需要更改环境依赖项就可以使用它,因为
PythonScriptStep
已作为依赖项自动安装了azureml-defaults
相关问题 更多 >
编程相关推荐