ValueError Traceback(最近一次通话) [英] ValueError Traceback (most recent call last)
问题描述
尝试在Microsoft Azure Machine Learning Studio上打开.csv时遇到了麻烦.
Hi, I'm having some trouble when I try to open a .csv on Microsoft Azure Machine Learning Studio.
第一个单元格包含:
从azureml导入工作区
ws = Workspace()
ds = ws.datasets ['Lemonade.csv']
frame = ds.to_dataframe()
from azureml import Workspace
ws = Workspace()
ds = ws.datasets['Lemonade.csv']
frame = ds.to_dataframe()
第二个:
框架
当我转到单元格"菜单并单击全部运行"时,会出现以下错误:
When I go to the Cell menu and click Run All it appears the following error:
ValueError Traceback (most recent call last)
<ipython-input-1-6791c88ab05a> in <module>()
1 from azureml import Workspace
2
----> 3 ws = Workspace()
4 ds = ws.datasets['Lemonade.csv']
5 frame = ds.to_dataframe()
/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
能帮我吗?
Could you please help me?
推荐答案
请继续尝试以下操作:
获取缺少的参数并将其输入为字符串.
Get missing parameters and input them as Strings.
ws = Workspace("[WORKSPACE_ID]", "[AUTH_TOKEN]")
在何处获得它们:
[WOKRSPACE_ID]:Azure ML Studio->设置->名称标签-> WorkspaceId
[AUTH_TOKEN]:Azure ML Studio->设置->授权令牌选项卡->主AUTH令牌.
Where to get them:
[WOKRSPACE_ID]: Azure ML Studio -> Settings -> Name Tab -> WorkspaceId
[AUTH_TOKEN]: Azure ML Studio -> Settings -> Authorization Token Tab -> Primary AUTH Token.
问候
宇通
这篇关于ValueError Traceback(最近一次通话)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!