SlideShare une entreprise Scribd logo
1  sur  20
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
1 Copyright 2014, Quantia Analytics LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
1
QUANTIA ANALYTICS
Using R on the Azure
Platform
Seattle UseR Group
November 13, 2014
Stephen F Elston, Managing Director Quantia Analytics
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
2
 Bicycle rental data
 Overview of Azure ML Studio
 Running R in Azure ML
• Execute R Script module
• I/O
• Graphics and transformation example
 Building and evaluating models in Azure ML
 Building models in R for Azure ML
• Model and prediction example
• Serialization of R objects
- Evaluating and comparing models
 Publishing models as a web service
Agenda
R code and data available at:
https://github.com/Quantia-Analytics/AzureML-Regression-Example/
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
3
Capital Bicycle Rental Data
 2 years of hourly data
• 17,379 rows
 Forecast hourly demand for rental bikes
• Overestimate is preferred to underestimate
 9 predictor variables
• 5 date-time
• 4 weather
• Compute 5 additional predictors
 Short time series limits modeling
 Citation: Fanaee-T, Hadi, and Gama, Joao, 'Event labeling
combining ensemble detectors and background knowledge',
Progress in Artificial Intelligence (2013): pp. 1-15, Springer Berlin
Heidelberg
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
4
Why Azure ML?
 Quickly deploy solutions as web service
 Run models in a highly scalable cloud environment
 Code and data in a secure environment
 Variety of efficient built-in algorithms
 Azure ML workflow extensible with R!
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
5
Overview of Azure ML Studio
 Overview of Azure ML Studio
• Modules
• Properties and documentation
• Canvas and workflow
 Starting an Experiment
 Loading data sets
 Reading and writing data
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
6
Execute R Script Module in Azure ML
 R in the Execute R Script
• Execute pure R code
• Each module is an R environment
• > 350 packages available + install script
• Parallel execution using snow and doSNOW packages
 Working between R Studio and Azure ML
• Edit, debug and test in R Studio
• Run R and publish as a web service in Azure ML
 Azure ML debugging tips
• Error messages and printed output available in the output.log file
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
7
5 I/O Ports of Execute R Script Module (input)
 Dataset1, Dataset2
• Input rectangular Azure data tables
• Produce R data frames in Execute R Script module
• Use maml.mapInputPort() function for ports 1 and 2
 Script bundle
• Input zipped R files
• Useful for reference data, utility functions, etc.
• Use familiar source("src/yourfile.R") and load("src/yourData.rdata")
functions
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
8
5 I/O Ports of Execute R Script Module (output)
• Results dataset
• Output an R data frame
• Produces Azure ML rectangular data table
• Use the maml.mapOutputPort() function
• R Device
• R printed and graphics output
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
9
Workflow using Execute R Script
Workflow to visualize bike rental data
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
10
Create and Evaluate an Azure ML Model
Workflow for machine learning
Data Input
Data Transformations
Model Definition
Train
Split
Score
Evaluate
See tutorials and examples at:
http://azure.microsoft.com/en-us/documentation/services/machine-learning/
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
11
Passing R Objects Between Execute R Script Modules
 Azure ML requires output and input to be rectangular tables
• Use R serialize() and unserialize() functions
• Serialize list of R objects as column of a data frame
• Coerce type to integer
• I provide serList() and unserList() functions to get you started
 Provides flexibility
• List can contain most any R object
• E.g. separate model calculation from prediction
• WARNING: limit on size of R vector may be a problem
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
12
Workflow integrating R scripts plus
Workflow for decision
forest model
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
13
Workflow integrating R scripts plus
Workflow for decision
forest regression
model with outlier
trimming
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
14
Workflow integrating R scripts plus
Workflow for
experiment with
neural network
regression model
added
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
15
R models in Azure ML
 Use serialization between model computation and prediction
Data Input
Data Transformations
Split
Evaluate
Compute Model
Serialize Object
Prediction
Unserialize Object
Execute R Script
Modules
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
16
Workflow integrating R scripts plus
Workflow for
experiment with R
support vector
machine model
added
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
17
Publishing Azure ML Model as a Web Service
 Publish input and output as web service
• Input to data transformation
• Output from prediction
 Web services run in Azure cloud
• Azure platform for native and R models
• Include data cleaning and transformation modules in flow
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
18
Publishing an Azure ML Model as a Web Service
Trained Model
Results Transformation
Data Transformations
Published
Input
Published
Output
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
19
Workflow integrating R scripts plus
Azure ML web
services workflow
ready for promotion to
production
Copyright 2014, Quantia Analytics, LLC. All rights reserved
Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC.
20
 Execute R Script module runs most any pure R code
 R extends Azure ML capabilities
 Clean and transform data with R
 Use R or native Azure ML models
 Integrate R and native modules in Azure ML
• Execute R Script modules in Azure ML work-flow
• Edit, debug and test R code in RStudio
• Execute in Azure ML
• Publish R model in Azure as web service
Summary

Contenu connexe

Tendances

Continuous Evaluation of Deployed Models in Production Many high-tech industr...
Continuous Evaluation of Deployed Models in Production Many high-tech industr...Continuous Evaluation of Deployed Models in Production Many high-tech industr...
Continuous Evaluation of Deployed Models in Production Many high-tech industr...
Databricks
 
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, RedditMaking Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Lucidworks
 
Machine Learning Models in Production
Machine Learning Models in ProductionMachine Learning Models in Production
Machine Learning Models in Production
DataWorks Summit
 
Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...
Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...
Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...
Databricks
 

Tendances (20)

GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
 
Generative Hyperloop Design: Managing Massively Scaled Simulations Focused on...
Generative Hyperloop Design: Managing Massively Scaled Simulations Focused on...Generative Hyperloop Design: Managing Massively Scaled Simulations Focused on...
Generative Hyperloop Design: Managing Massively Scaled Simulations Focused on...
 
Continuous Evaluation of Deployed Models in Production Many high-tech industr...
Continuous Evaluation of Deployed Models in Production Many high-tech industr...Continuous Evaluation of Deployed Models in Production Many high-tech industr...
Continuous Evaluation of Deployed Models in Production Many high-tech industr...
 
Spark ML Pipeline serving
Spark ML Pipeline servingSpark ML Pipeline serving
Spark ML Pipeline serving
 
Building Modern APIs with GraphQL
Building Modern APIs with GraphQLBuilding Modern APIs with GraphQL
Building Modern APIs with GraphQL
 
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, RedditMaking Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
 
Bridging the Gap Between Datasets and DataFrames
Bridging the Gap Between Datasets and DataFramesBridging the Gap Between Datasets and DataFrames
Bridging the Gap Between Datasets and DataFrames
 
Make your PySpark Data Fly with Arrow!
Make your PySpark Data Fly with Arrow!Make your PySpark Data Fly with Arrow!
Make your PySpark Data Fly with Arrow!
 
Discover How Volvo Cars Uses a Time Series Database to Become Data-Driven
Discover How Volvo Cars Uses a Time Series Database to Become Data-DrivenDiscover How Volvo Cars Uses a Time Series Database to Become Data-Driven
Discover How Volvo Cars Uses a Time Series Database to Become Data-Driven
 
Model Parallelism in Spark ML Cross-Validation with Nick Pentreath and Bryan ...
Model Parallelism in Spark ML Cross-Validation with Nick Pentreath and Bryan ...Model Parallelism in Spark ML Cross-Validation with Nick Pentreath and Bryan ...
Model Parallelism in Spark ML Cross-Validation with Nick Pentreath and Bryan ...
 
Cost Efficiency Strategies for Managed Apache Spark Service
Cost Efficiency Strategies for Managed Apache Spark ServiceCost Efficiency Strategies for Managed Apache Spark Service
Cost Efficiency Strategies for Managed Apache Spark Service
 
Serverless machine learning operations
Serverless machine learning operationsServerless machine learning operations
Serverless machine learning operations
 
Big Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
Big Data, Big Thinking: Simplified Architecture Webinar Fact SheetBig Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
Big Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
 
Data Warehousing with Spark Streaming at Zalando
Data Warehousing with Spark Streaming at ZalandoData Warehousing with Spark Streaming at Zalando
Data Warehousing with Spark Streaming at Zalando
 
Machine Learning Models in Production
Machine Learning Models in ProductionMachine Learning Models in Production
Machine Learning Models in Production
 
Harnessing Spark Catalyst for Custom Data Payloads
Harnessing Spark Catalyst for Custom Data PayloadsHarnessing Spark Catalyst for Custom Data Payloads
Harnessing Spark Catalyst for Custom Data Payloads
 
Delight: An Improved Apache Spark UI, Free, and Cross-Platform
Delight: An Improved Apache Spark UI, Free, and Cross-PlatformDelight: An Improved Apache Spark UI, Free, and Cross-Platform
Delight: An Improved Apache Spark UI, Free, and Cross-Platform
 
Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...
Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...
Using BigDL on Apache Spark to Improve the MLS Real Estate Search Experience ...
 
Analytics & Fiori with the Analysis Path Framework
Analytics & Fiori with the Analysis Path FrameworkAnalytics & Fiori with the Analysis Path Framework
Analytics & Fiori with the Analysis Path Framework
 
SAP PI online training course content
SAP PI online training course contentSAP PI online training course content
SAP PI online training course content
 

En vedette (13)

Zombie run, llc
Zombie run, llcZombie run, llc
Zombie run, llc
 
Happiness
HappinessHappiness
Happiness
 
Happiness
HappinessHappiness
Happiness
 
AccessUp - Silicon Valley in your corner
AccessUp - Silicon Valley in your cornerAccessUp - Silicon Valley in your corner
AccessUp - Silicon Valley in your corner
 
AccessUp - enter the US Market
AccessUp - enter the US MarketAccessUp - enter the US Market
AccessUp - enter the US Market
 
Fsa overview
Fsa overviewFsa overview
Fsa overview
 
AccessUp - Enter the US market
AccessUp - Enter the US marketAccessUp - Enter the US market
AccessUp - Enter the US market
 
Ezio Bigotti - Struttura del Gruppo STI
Ezio Bigotti - Struttura del Gruppo STIEzio Bigotti - Struttura del Gruppo STI
Ezio Bigotti - Struttura del Gruppo STI
 
Aquaponic parameters
Aquaponic parametersAquaponic parameters
Aquaponic parameters
 
Doug Oliver 2013 - Visual Resume
Doug Oliver 2013 - Visual ResumeDoug Oliver 2013 - Visual Resume
Doug Oliver 2013 - Visual Resume
 
Kinetic theory of gases
Kinetic theory of gasesKinetic theory of gases
Kinetic theory of gases
 
Aquaponic Food Production
Aquaponic Food ProductionAquaponic Food Production
Aquaponic Food Production
 
Performance tasks
Performance tasksPerformance tasks
Performance tasks
 

Similaire à Settle UseR 2014-10-13

Similaire à Settle UseR 2014-10-13 (20)

Bhadale group of companies - Our project works
Bhadale group of companies - Our project worksBhadale group of companies - Our project works
Bhadale group of companies - Our project works
 
SAP FIORI COEP Pune - pavan golesar (ppt)
SAP FIORI COEP Pune - pavan golesar (ppt)SAP FIORI COEP Pune - pavan golesar (ppt)
SAP FIORI COEP Pune - pavan golesar (ppt)
 
REST API Doc Best Practices
REST API Doc Best PracticesREST API Doc Best Practices
REST API Doc Best Practices
 
Productionizing Data Science at Experience
Productionizing Data Science at ExperienceProductionizing Data Science at Experience
Productionizing Data Science at Experience
 
Deployment Design Patterns - Deploying Machine Learning and Deep Learning Mod...
Deployment Design Patterns - Deploying Machine Learning and Deep Learning Mod...Deployment Design Patterns - Deploying Machine Learning and Deep Learning Mod...
Deployment Design Patterns - Deploying Machine Learning and Deep Learning Mod...
 
AllThingsOpen 2018 - Deployment Design Patterns (Dan Zaratsian)
AllThingsOpen 2018 - Deployment Design Patterns (Dan Zaratsian)AllThingsOpen 2018 - Deployment Design Patterns (Dan Zaratsian)
AllThingsOpen 2018 - Deployment Design Patterns (Dan Zaratsian)
 
Making Data Scientists Productive in Azure
Making Data Scientists Productive in AzureMaking Data Scientists Productive in Azure
Making Data Scientists Productive in Azure
 
Power BI for Developers @ SQLSaturday #420 (Paris)
Power BI for Developers @ SQLSaturday #420 (Paris)Power BI for Developers @ SQLSaturday #420 (Paris)
Power BI for Developers @ SQLSaturday #420 (Paris)
 
Operational Machine Learning: Using Microsoft Technologies for Applied Data S...
Operational Machine Learning: Using Microsoft Technologies for Applied Data S...Operational Machine Learning: Using Microsoft Technologies for Applied Data S...
Operational Machine Learning: Using Microsoft Technologies for Applied Data S...
 
EPAM ML/AI Accelerator - ODAHU
EPAM ML/AI Accelerator - ODAHUEPAM ML/AI Accelerator - ODAHU
EPAM ML/AI Accelerator - ODAHU
 
PyCon Sweden 2022 - Dowling - Serverless ML with Hopsworks.pdf
PyCon Sweden 2022 - Dowling - Serverless ML with Hopsworks.pdfPyCon Sweden 2022 - Dowling - Serverless ML with Hopsworks.pdf
PyCon Sweden 2022 - Dowling - Serverless ML with Hopsworks.pdf
 
Migrazione di Database e Data Warehouse su AWS
Migrazione di Database e Data Warehouse su AWSMigrazione di Database e Data Warehouse su AWS
Migrazione di Database e Data Warehouse su AWS
 
Boost Your Content Strategy for REST APIs
Boost Your Content Strategy for REST APIsBoost Your Content Strategy for REST APIs
Boost Your Content Strategy for REST APIs
 
Apache Arrow: Open Source Standard Becomes an Enterprise Necessity
Apache Arrow: Open Source Standard Becomes an Enterprise NecessityApache Arrow: Open Source Standard Becomes an Enterprise Necessity
Apache Arrow: Open Source Standard Becomes an Enterprise Necessity
 
Big Data Adavnced Analytics on Microsoft Azure
Big Data Adavnced Analytics on Microsoft AzureBig Data Adavnced Analytics on Microsoft Azure
Big Data Adavnced Analytics on Microsoft Azure
 
SPS Sydney - To the Cloud! Utilising Azure as a Cloud Hosting Provider for Sh...
SPS Sydney - To the Cloud! Utilising Azure as a Cloud Hosting Provider for Sh...SPS Sydney - To the Cloud! Utilising Azure as a Cloud Hosting Provider for Sh...
SPS Sydney - To the Cloud! Utilising Azure as a Cloud Hosting Provider for Sh...
 
Running Apache Spark Jobs Using Kubernetes
Running Apache Spark Jobs Using KubernetesRunning Apache Spark Jobs Using Kubernetes
Running Apache Spark Jobs Using Kubernetes
 
Graph Analytics on Data from Meetup.com
Graph Analytics on Data from Meetup.comGraph Analytics on Data from Meetup.com
Graph Analytics on Data from Meetup.com
 
Slidedeck Mehr als Reporting - Datenanalysen mit Oracle R Enterprise - DOAG D...
Slidedeck Mehr als Reporting - Datenanalysen mit Oracle R Enterprise - DOAG D...Slidedeck Mehr als Reporting - Datenanalysen mit Oracle R Enterprise - DOAG D...
Slidedeck Mehr als Reporting - Datenanalysen mit Oracle R Enterprise - DOAG D...
 
Predictive Analysis using Microsoft SQL Server R Services
Predictive Analysis using Microsoft SQL Server R ServicesPredictive Analysis using Microsoft SQL Server R Services
Predictive Analysis using Microsoft SQL Server R Services
 

Dernier

➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
karishmasinghjnh
 

Dernier (20)

Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 

Settle UseR 2014-10-13

  • 1. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 1 Copyright 2014, Quantia Analytics LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 1 QUANTIA ANALYTICS Using R on the Azure Platform Seattle UseR Group November 13, 2014 Stephen F Elston, Managing Director Quantia Analytics
  • 2. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 2  Bicycle rental data  Overview of Azure ML Studio  Running R in Azure ML • Execute R Script module • I/O • Graphics and transformation example  Building and evaluating models in Azure ML  Building models in R for Azure ML • Model and prediction example • Serialization of R objects - Evaluating and comparing models  Publishing models as a web service Agenda R code and data available at: https://github.com/Quantia-Analytics/AzureML-Regression-Example/
  • 3. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 3 Capital Bicycle Rental Data  2 years of hourly data • 17,379 rows  Forecast hourly demand for rental bikes • Overestimate is preferred to underestimate  9 predictor variables • 5 date-time • 4 weather • Compute 5 additional predictors  Short time series limits modeling  Citation: Fanaee-T, Hadi, and Gama, Joao, 'Event labeling combining ensemble detectors and background knowledge', Progress in Artificial Intelligence (2013): pp. 1-15, Springer Berlin Heidelberg
  • 4. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 4 Why Azure ML?  Quickly deploy solutions as web service  Run models in a highly scalable cloud environment  Code and data in a secure environment  Variety of efficient built-in algorithms  Azure ML workflow extensible with R!
  • 5. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 5 Overview of Azure ML Studio  Overview of Azure ML Studio • Modules • Properties and documentation • Canvas and workflow  Starting an Experiment  Loading data sets  Reading and writing data
  • 6. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 6 Execute R Script Module in Azure ML  R in the Execute R Script • Execute pure R code • Each module is an R environment • > 350 packages available + install script • Parallel execution using snow and doSNOW packages  Working between R Studio and Azure ML • Edit, debug and test in R Studio • Run R and publish as a web service in Azure ML  Azure ML debugging tips • Error messages and printed output available in the output.log file
  • 7. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 7 5 I/O Ports of Execute R Script Module (input)  Dataset1, Dataset2 • Input rectangular Azure data tables • Produce R data frames in Execute R Script module • Use maml.mapInputPort() function for ports 1 and 2  Script bundle • Input zipped R files • Useful for reference data, utility functions, etc. • Use familiar source("src/yourfile.R") and load("src/yourData.rdata") functions
  • 8. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 8 5 I/O Ports of Execute R Script Module (output) • Results dataset • Output an R data frame • Produces Azure ML rectangular data table • Use the maml.mapOutputPort() function • R Device • R printed and graphics output
  • 9. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 9 Workflow using Execute R Script Workflow to visualize bike rental data
  • 10. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 10 Create and Evaluate an Azure ML Model Workflow for machine learning Data Input Data Transformations Model Definition Train Split Score Evaluate See tutorials and examples at: http://azure.microsoft.com/en-us/documentation/services/machine-learning/
  • 11. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 11 Passing R Objects Between Execute R Script Modules  Azure ML requires output and input to be rectangular tables • Use R serialize() and unserialize() functions • Serialize list of R objects as column of a data frame • Coerce type to integer • I provide serList() and unserList() functions to get you started  Provides flexibility • List can contain most any R object • E.g. separate model calculation from prediction • WARNING: limit on size of R vector may be a problem
  • 12. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 12 Workflow integrating R scripts plus Workflow for decision forest model
  • 13. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 13 Workflow integrating R scripts plus Workflow for decision forest regression model with outlier trimming
  • 14. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 14 Workflow integrating R scripts plus Workflow for experiment with neural network regression model added
  • 15. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 15 R models in Azure ML  Use serialization between model computation and prediction Data Input Data Transformations Split Evaluate Compute Model Serialize Object Prediction Unserialize Object Execute R Script Modules
  • 16. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 16 Workflow integrating R scripts plus Workflow for experiment with R support vector machine model added
  • 17. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 17 Publishing Azure ML Model as a Web Service  Publish input and output as web service • Input to data transformation • Output from prediction  Web services run in Azure cloud • Azure platform for native and R models • Include data cleaning and transformation modules in flow
  • 18. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 18 Publishing an Azure ML Model as a Web Service Trained Model Results Transformation Data Transformations Published Input Published Output
  • 19. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 19 Workflow integrating R scripts plus Azure ML web services workflow ready for promotion to production
  • 20. Copyright 2014, Quantia Analytics, LLC. All rights reserved Quantia and the Quantia logo are registered trademarks of Quantia Analytics, LLC. 20  Execute R Script module runs most any pure R code  R extends Azure ML capabilities  Clean and transform data with R  Use R or native Azure ML models  Integrate R and native modules in Azure ML • Execute R Script modules in Azure ML work-flow • Edit, debug and test R code in RStudio • Execute in Azure ML • Publish R model in Azure as web service Summary