卡在第一实验室 [英] Stuck in First Lab

查看:83
本文介绍了卡在第一实验室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


ws = Workspace()
实验= ws.experiments ['27793ae0725e4eaf9a52c7161ffc8566.f-id.557f61d94a3c48c8b9ec8bfbb15f2b2b']
ds = Experiment.get_intermediate_dataset(
    node_id ='a42a0575-2049-4b71-9055-530582f5408b-31',
    port_name ='结果数据集',
    data_type_id ='GenericCSV'
)
frame = ds.to_dataframe()

from azureml import Workspace
ws = Workspace()
experiment = ws.experiments['27793ae0725e4eaf9a52c7161ffc8566.f-id.557f61d94a3c48c8b9ec8bfbb15f2b2b']
ds = experiment.get_intermediate_dataset(
    node_id='a42a0575-2049-4b71-9055-530582f5408b-31',
    port_name='Results dataset',
    data_type_id='GenericCSV'
)
frame = ds.to_dataframe()

以PDF表示,我正在全部运行

AS SAID IN PDF, I AM RUNNING ALL

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-6c7ed08c02f1> in <module>()
      1 from azureml import Workspace
----> 2 ws = Workspace()
      3 experiment = ws.experiments['27793ae0725e4eaf9a52c7161ffc8566.f-id.557f61d94a3c48c8b9ec8bfbb15f2b2b']
      4 ds = ws.get_intermediate_dataset(
      5     node_id='a42a0575-2049-4b71-9055-530582f5408b-31',

/home/nbuser/anaconda3_23/lib/python3.4/site-packages/azureml/__init__.py in __init__(self, workspace_id, authorization_token, endpoint)
    883         endpoint = https://studio.azureml.net
    884         """
--> 885         workspace_id, authorization_token, endpoint, management_endpoint = _get_workspace_info(workspace_id, authorization_token, endpoint, None)
    886 
    887         _not_none_or_empty('workspace_id', workspace_id)

/home/nbuser/anaconda3_23/lib/python3.4/site-packages/azureml/__init__.py in _get_workspace_info(workspace_id, authorization_token, endpoint, management_endpoint)
    849 
    850         if workspace_id is None:
--> 851             raise ValueError('workspace_id not provided and not available via config')
    852         if authorization_token is None:
    853             raise ValueError('authorization_token not provided and not available via config')

ValueError: workspace_id not provided and not available via config

使用

推荐答案

尝试使用选项"Generate Data Access Code ...",该选项可从上下文菜单的输出中获得.一些模块.这为您提供了必须复制并粘贴到Notebook中的Python代码,才能正确访问您的数据集或中间数据 实验中,工作区ID应该在那儿.这是从Jupyter Notebook或本地首选IDE访问AML Studio工作区的方法.

如果禁用了生成数据访问代码..."选项,则拖动转换为CSV"模块,然后将需要数据的模块的输出连接到该模块的输入.运行,然后在输出上单击"Generate Data Access Code ..."选项 转换为CSV"模块.

这些数字应该有帮助;)

Try using the option 'Generate Data Access Code...', available from the context menu at the output of some modules. This gives you the Python code that you have to copy and paste in your Notebook to access correctly to datasets or intermediate data in your experiment, workspace ID should be there. This is the way to gain access to your AML Studio workspace from Jupyter Notebooks or your local preferred IDE.

If the 'Generate Data Access Code...' option is disabled, drag a 'Convert to CSV' module and connect the output of the module from which you need the data to the input of this one. Run and then click on the 'Generate Data Access Code...' option at the output of the 'Convert to CSV' module. 

The figures should help ;)


这篇关于卡在第一实验室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆