GithubHelp home page GithubHelp logo

test-mass-forker-org-1 / ai-architecture-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ndrd/ai-architecture-template

0.0 0.0 0.0 120 KB

Base Python Template for Microsoft AI Azure Architectures

License: MIT License

Python 19.37% Jupyter Notebook 80.63%

ai-architecture-template's Introduction

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 [email protected] 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.

ai-architecture-template's People

Contributors

dciborow avatar microsoft-github-operations[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.