Code Monkey home page Code Monkey logo

automl-handson's Introduction

automl-handson

Notebook for Automated ML with Azure Databricks (ADB) workshop. It includes data prep with Pandas, Training with automaed ML and deploy to ACI and AKS in a single notebook.

Copy the .dbc URL and import it in Azure Databricks workspace.

Create your ADB cluster by following the instructions here - https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-configure-environment#azure-databricks

Install only azureml-sdk[automl_databricks] in your cluster.

Reference ppt - https://www.slideshare.net/ParasharShah/azure-ai-platform-automated-ml-workshop

automl-handson's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

automl-handson's Issues

Workaround for wrong tenant error when calling Workspace.create

Hi @parasharshah,

I have participated in a Hand-On Lab session of yours in Budapest, Hungary and I have encountered an issue with the device login using an account linked to multiple Azure AD tenants.

I have added a tiny workaround tutorial in the Create Azure ML workspace step of 007.Predictive_Maint_AutoML_ADB.dbc. It looks like this (entire cell):

# Import the Workspace class and check the Azure ML SDK version.
from azureml.core import Workspace

# if your account is linked to multiple tenants and device login tries to login into the wrong tenant you can try this
# 0) check if you have sufficient permission in the tenant of the ML workspace to create service principal (https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#required-permissions). 
# If not, you should reach out to your tenant administrator for further assistance.
# 1) create a service principal in the tenant of the ML workspace - https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal
# 2) generate a secret key for the service principal - https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#get-values-for-signing-in
# 3) assign a permission for the service principal to access the ML workspace (e.g. assign owner or contributor role in the resource group)
# 4) comment out the lines below and fill out the necessary parameters

#from azureml.core.authentication import ServicePrincipalAuthentication

#service_principal_auth = ServicePrincipalAuthentication(
#       tenant_id="<directory ID of the right tenant>",
#       service_principal_id="<application ID of the service principal>",
#       service_principal_password="<secret key of the service principal>") 

ws = Workspace.create(name = workspace_name,
                      # auth=service_principal_auth, #uncomment this line if you have to use service principal based authentication
                      subscription_id = subscription_id,
                      resource_group = resource_group, 
                      location = workspace_region,                      
                      exist_ok=True)
ws.get_details()

Feel free to use this in any way you want.

Hope this helps,
Gabor

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.