首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何使用Azure作为Azure ML的输入数据集?

如何使用Azure作为Azure ML的输入数据集?
EN

Stack Overflow用户
提问于 2016-03-21 09:42:18
回答 2查看 992关注 0票数 0

我正在移动数据到Azure数据湖存储和处理它使用Azure数据湖分析。数据是XML格式的,我正在通过XML抽取器读取它。现在,我想从Azure中访问这些数据,看起来Azure数据湖存储目前还不受直接支持。

用Azure ML使用Azure的可能方法是什么?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-03-23 16:22:08

现在,Azure并不是受支持的源,正如您注意到的。尽管如此,Azure也可以用于将数据写入Azure Blob Store,因此您可以使用它作为一种在used中处理数据的方法,然后将其用于Azure Machine从Blob商店学习处理数据。当Azure ML支持时,您可以切换它。

票数 4
EN

Stack Overflow用户

发布于 2022-01-03 11:30:26

代码语言:javascript
运行
复制
account_name=os.getenv("ADLSGEN2_ACCOUNTNAME_62", "<storage account name>") # ADLS Gen2 account name
tenant_id=os.getenv("ADLSGEN2_TENANT_62", "") # tenant id of service principal
client_id=os.getenv("ADLSGEN2_CLIENTID_62", "") # client id of service principal
client_secret=os.getenv("ADLSGEN2_CLIENT_SECRET_62", "") # the secret of service principal

try:
    adlsgen2_datastore = Datastore.get(workspace, adlsgen2_datastore_name)
    print("Found ADLS Gen2 datastore with name: %s" % adlsgen2_datastore_name)
    datastore_paths = [(adlsgen2_datastore, 'path to data.csv')]
    dataset = Dataset.Tabular.from_delimited_files(path=datastore_paths)
    df = dataset.to_pandas_dataframe()
    display(dataset.to_pandas_dataframe())
    datastore = adlsgen2_datastore
    dataset = Dataset.Tabular.register_pandas_dataframe(df, datastore, "<DataSetStep>", show_progress=True)

except:
    adlsgen2_datastore = Datastore.register_azure_data_lake_gen2(
        workspace=workspace,
        datastore_name=adlsgen2_datastore_name,
        filesystem='fs', # Name of ADLS Gen2 filesystem
        account_name=account_name, # ADLS Gen2 account name
        tenant_id=tenant_id, # tenant id of service principal
        client_id=client_id, # client id of service principal
        client_secret=client_secret) # the secret of service principal

参考资料:https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/aml-pipelines-data-transfer.ipynb

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36127510

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档