2 Star 0 Fork 0

mirrors_microsoft/ai-architecture-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Build Status

Authors: Fidan Boylu Uz, Yan Zhang, Mario Bourgoin, Daniel Grecoe, Daniel Ciborowski

AI Architecture Template

Overview

This template is meant to simplify creating new Azure ML based projects, with an easy to configure Azure DevOps CI/CD pipeline.

Prerequisites

  1. Anaconda Python
  2. Docker installed.
  3. Azure account.

NOTE You will need to be able to run docker commands without sudo to run this tutorial. Use the following commands to do this.

sudo usermod -aG docker $USER
newgrp docker

The tutorial was developed on an Azure Ubuntu DSVM, which addresses the first three prerequisites.

Setup

Create new repository

First either create a new repo from the template, or create a fork of this repo. You can use this template by selecting Use This Template to create a new repository based on this project from the repository homepage.

Set Up Azure DevOps Pipeline

You may use the .ci/azure-pipeline.yml to configure a CI/CD build for your repostitory. Follow the directions provided within the pipeline.

For details on the prerequistes please see here. With the Azure CLI installed, the following script can be used to create a new pipeline in your organizations Azure DevOps instance.

#!/usr/bin/env bash
organization="<from dev.azure.com/[organization]>"
project="<from dev.azure.com/organization/[project]>"
service_connection="<Name Of New or Existing Service Connection>"
name="<pipeline name>"
repository="[github org]/[github repoistory name]"

az extension add --name azure-devops

az devops configure --defaults organization=https://dev.azure.com/$organization project="$project"

az login

az pipelines create --name $name            \
  --description ''                          \
  --repository $repository                  \
  --branch master                           \
  --repository-type github                  \
  --yml-path .ci/azure-pipelines-v2.yml     \
  --service-connection $service_connection

Run Locally

To set up your environment to run this notebook, please follow these steps. They setup the notebook to use Azure seamlessly.

  1. First either create a new repo from the template, or create a fork of this repo.
  2. Clone your new repository locally, or on an Azure Data Science Virtual Machine.
    git clone https://github.com/[your_github_username_or_org]/[your_project].git
    
  3. Enter the local repository:
    cd [your_project]
    
  4. Copy project_sample.yml to a new file, project.yml, you can fill in the fields now, or use the UI when running from the notebook. This will keep secrets out of the source code, and this file will be ignored by git.
    cp project_sample.yml project.yml
    
  5. Create the Python ai-architecture-template virtual environment using the environment.yml:
    conda env create -f environment.yml
    
  6. Activate the virtual environment:
    source activate ai-architecture-template
    
    The remaining steps should be done in this virtual environment.
  7. Login to Azure:
    az login
    
    You can verify that you are logged in to your subscription by executing the command:
    az account show -o table
    
  8. If you have more than one Azure subscription, select it:
    az account set --subscription <Your Azure Subscription>
    
  9. Start the Jupyter notebook server:
    jupyter notebook
    

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Related projects

Microsoft AI Github Find other Best Practice projects, and Azure AI Designed patterns in our central repository.

MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_microsoft/ai-architecture-template.git
git@gitee.com:mirrors_microsoft/ai-architecture-template.git
mirrors_microsoft
ai-architecture-template
ai-architecture-template
master

搜索帮助