Giter Club home page Giter Club logo

machinelearningsamples-mml's Introduction

Samples for using RevoScalePy and MicrosoftML packages

NOTE This content is no longer maintained. Visit the Azure Machine Learning Notebook project for sample Jupyter notebooks for ML and deep learning with Azure Machine Learning.

revoscalepy and microsoftml are machine learning libraries provided by Microsoft. They contain many battled tested and high performance machine learning algorithms.

This gallery will showcase how to use 'revoscalepy" and 'microsoftml' for predictive analytics. There are 2 samples in this gallery:

  1. Wine quality prediction with revoscalepy functions (Notebook file" 'revoscalepy_wine_prediction.ipynb'; Python script: revoscalepy_wine_prediction.py)
  2. Adult census analysis with microsoftml functions (Notebook file: microsoftml_adult_census.ipynb; Python script: adult_census.py)

Please note:

  1. 'revoscalepy' and 'microsoftml' don't support Mac OS yet, therefore these samples won't work in Mac OS.
  2. 'microsoftml' is not bundled with Workbench installer, to run Adult census analysis sample, please first install the package.
- For Windows: 'pip install https://rserverdistribution.azureedge.net/production/revoscalepy/9.2.1/wb/1033/d282048eb04046999211535f7368a0a4/windows/microsoftml-1.5.0-py3-none-any.whl'
- For Linux (used in Docker): 'pip install https://rserverdistribution.azureedge.net/production/revoscalepy/9.2.1/wb/1033/d282048eb04046999211535f7368a0a4/linux/microsoftml-1.5.0-py3-none-any.whl'

Wine quality prediction sample using revoscalepy package

Wine quality prediction

Please pip install matplotlib before try this sample, if it has not been installed.

QuickStart

Navigate to the "Notebooks", open revoscalepy_wine_prediction.ipynb, click Start the Notebook Server button, and execute the script to run through the sample.

Quick CLI references

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

First, launch the Command Prompt or Powershell from the File menu.

Run in local Python environment.

$ az ml experiment submit -c local revoscalepy_wine_prediction.py

Run in a local Docker container. Please ensure your Docker engine allows at least 4 GB or RAM in order for this sample to run in Docker.

$ az ml experiment submit -c docker revoscalepy_wine_prediction.py

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

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

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

Run revoscalepy_wine_prediction.py script in a Docker container in a remote VM:

$ az ml experiment submit -c myvm revoscalepy_wine_prediction.py

Adult census sample using microsoftml package

Adult census analytis

microsoftml is not bundled with Workbench installer, to run this sample, please first install the package.

  • For Windows:
pip install https://rserverdistribution.azureedge.net/production/revoscalepy/9.2.1/wb/1033/d282048eb04046999211535f7368a0a4/windows/microsoftml-1.5.0-py3-none-any.whl
  • For Linux (used in Docker):
pip install https://rserverdistribution.azureedge.net/production/revoscalepy/9.2.1/wb/1033/d282048eb04046999211535f7368a0a4/linux/microsoftml-1.5.0-py3-none-any.whl

Please pip install matplotlib before try this sample, if it has not been installed.

QuickStart

Navigate to the "Notebooks", open microsoftml_adult_census.ipynb, click Start the Notebook Server button, and execute the script to run through the sample.

Quick CLI references

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

First, launch the Command Prompt or Powershell from the File menu.

Run in local Python environment.

$ az ml experiment submit -c local adult_census.py

Run in a local Docker container. Please ensure your Docker engine allows at least 4 GB or RAM in order for this sample to run in Docker.

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

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

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

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

Run adult_census.py script in a Docker container in a remote VM:

$ az ml experiment submit -c myvm adult_census.py

machinelearningsamples-mml's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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