Git Product home page Git Product logo

iris-azure-ml's Introduction

Classifying Iris

This is a companion sample project of the Azure Machine Learning QuickStart and Tutorials. Using the timeless Iris flower dataset, it walks you through the basics of preparing dataset, creating a model and deploying it as a web service.

cover

QuickStart

Select local as the execution environment, and iris_sklearn.py as the script, and click Run button. You can also set the Regularization Rate by entering 0.01 in the Arguments control. Changing the Regularization Rate has an impact on the accuracy of the model, giving interesting results to explore.

Exploring results

After running, you can check out the results in Run History. Exploring the Run History will allow you to see the correlation between the parameters you entered and the accuracy of the models. You can get individual run details by clicking a run in the Run History report or clicking the name of the run on the Jobs Panel to the right. In this sample you will have richer results if you have matplotlib installed.

Quick CLI references

If you want to try exercising the Iris sample from the command line, here are some things to try:

First, launch the Command Prompt or Powershell from the File menu. Then enter the following commands:

# first let's install matplotlib locally
$ pip install matplotlib

# log in to Azure if you haven't done so
$ az login

# kick off many local runs sequentially
$ python run.py

Run iris_sklearn.py Python script in local Python environment.

$ az ml experiment submit -c local iris_sklearn.py

Run iris_sklearn.py Python script in a local Docker container.

$ az ml experiment submit -c docker-python iris_sklearn.py

Run iris_spark.py PySpark script in a local Docker container.

$ az ml experiment submit -c docker-spark iris_spark.py

Create myvm run configuration to point to a Docker container on a remote VM

$ az ml computetarget attach remotedocker --name myvm --address <ip address or FQDN> --username <username> --password <pwd>

# prepare the environment
$ az ml experiment prepare -c myvm

Run iris_spark.py PySpark script in a Docker container (with Spark) in a remote VM:

$ az ml experiment submit -c myvm iris_spark.py

Create myhdi run configuration to point to an HDI cluster

$ az ml computetarget attach cluster --name myhdi --address <ip address or FQDN of the head node> --username <username> --password <pwd> 

# prepare the environment
$ az ml experiment prepare -c myhdi

Run in a remote HDInsight cluster:

$ az ml experiment submit -c myhdi iris_spark.py

iris-azure-ml's People

Contributors

kuharan avatar

Watchers

James Cloos avatar  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.