您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

使用笔记本中的 Azure 机器学习Use Azure Machine Learning in a notebook

Azure Notebooks 已预先配置为使用Azure 机器学习所需的环境。Azure Notebooks comes pre-configured with the necessary environment to work with Azure Machine Learning. 可以轻松地将示例项目复制到 Notebook 帐户,以浏览各种机器学习场景。You can easily clone a sample project into your Notebooks account to explore a variety of Machine Learning scenarios.

将示例克隆到帐户Clone the sample into your account

  1. 登录 Azure NotebooksSign into Azure Notebooks.

  2. 选择 "我的项目" 以切换到 "项目" 仪表板。Select My Projects to go to the projects dashboard.

  3. 选择 "上传 Github存储库" (向上箭头)按钮,打开 "上传 github 存储库" 弹出窗口。Select the Upload GitHub Repo (the up arrow) button to open the Upload GitHub Repository popup.

  4. 在弹出项中输入 "Azure/MachineLearningNotebooksGitHub 存储库中,在"项目名称"中提供项目的名称,如" Azure 机器学习 ",在"项目 ID"中提供一个标识符; 如果需要,请清除"公开",然后选择"导入"。In the popup, enter Azure/MachineLearningNotebooks in GitHub repository, provide a name for the project in Project Name like "Azure Machine Learning", provide an identifier in Project ID, clear Public if you want, then select Import.

    将 Azure 机器学习笔记本示例导入 Notebooks 帐户

  5. 一两分钟后,Azure Notebooks 会自动转到新项目的仪表板。After a minute or two, Azure Notebooks automatically takes you to the new project's dashboard.

运行示例笔记本Run a sample notebook

  1. 选择 00 - configuration.ipynb 启动笔记本的配置部分,并按照其说明创建 Azure 机器学习工作区。Select 00 - configuration.ipynb to start the configuration section of the notebook, and follow its instructions to create an Azure Machine Learning Workspace.

    • 因为 Azure Notebooks 已包含必要的 Python 包,所以可以只运行先决条件的第 2 步中的代码片段来验证 Azure ML SDK 版本。Because Azure Notebooks already contains the necessary Python packages, you can just run the code snippet in step 2 of the Prerequisites to verify the Azure ML SDK version.
  2. 配置完成后,选择 " 01. 入门" 以打开包含十三个不同示例笔记本的文件夹,其中每个示例都一目了然。Once configuration is complete, select 01.getting-started to open the folder containing thirteen different sample notebooks, each of which is self-explanatory.

后续步骤Next steps

Azure 机器学习文档包含各种其他资源,这些资源可指导你使用笔记本中的机器学习:The Azure Machine Learning documentation contains a variety of other resources that guide you through working with Machine Learning within notebooks:

另请参阅用于 Python 的 Azure 机器学习 SDK 一文。Also see the documentation for the Azure Machine Learning SDK for Python.