ValueError:没有提供workspace_id,并且无法通过配置使用 [英] ValueError: workspace_id not provided and not available via config
问题描述
请帮助我!!! 此数据
从azureml导入工作区
ws = Workspace()
实验= ws.experiments ['bc32e2d9f65c4ebe87ac31b546de0832.f-id.8b526115007848868251c64c0dbebe6a']
ds = Experiment.get_intermediate_dataset(
node_id ='e99badf1-4d8c-4705-9689-27df305c59bd-319',
port_name ='结果数据集',
data_type_id ='GenericCSV'
)
frame = ds.to_dataframe()
框架
当我运行jupyter时,出现这些错误
-------------------------------------------------- -------------------------
ValueError 追溯(最近一次拨打电话)
< ipython-input-1-e28ce80af30f>在< module>()
中
azureml导入工作区中的1个
----> 2 ws = Workspace()
3个实验= ws.experiments ['bc32e2d9f65c4ebe87ac31b546de0832.f-id.8b526115007848868251c64c0dbebe6a']
4 ds = Experiment.get_intermediate_dataset(
5 node_id ='e99badf1-4d8c-4705-9689-27df305c59bd-319',
/home/nbuser/anaconda3_23/lib/python3.4/site-packages/azureml/__init__.py in __init __(自身,workspace_id,authorization_token,端点)
883 endpoint = https://studio.azureml.net
884 ""
-> 885 workspace_id,authorization_token,端点,management_endpoint = _get_workspace_info(workspace_id,authorization_token,端点,无)
886
887 _not_none_or_empty('workspace_id',workspace_id)
_get_workspace_info中的/home/nbuser/anaconda3_23/lib/python3.4/site-packages/azureml/__init__.py(workspace_id、authorization_token,端点,management_endpoint)
849
850 如果workspace_id为None:
-> 851 raise ValueError('workspace_id未提供,并且无法通过config'获得)
852 如果authorization_token为None:
853 raise ValueError('authorization_token未提供,并且无法通过配置获得')
ValueError:没有提供workspace_id,并且无法通过配置使用
请尝试以下解决方案:
方案A:
库 ( ws <- ( = '**工作 空间ID **' , auth = '**身份验证令牌**' )
计划B:
2.数据集
4.替换代码
解决方案
Hi,
Please try following solutions:
Plan A:
library("AzureML")
ws <- workspace(id='**work space ID **', auth='** auth token **')
Plan B:
1. Right click on data.csv module
2. dataset
3. generate data access code
You can choose to get the codes from Python or R (this solved the problem for the 2 cases)
4. Replace the code
5. Run
这篇关于ValueError:没有提供workspace_id,并且无法通过配置使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!