SlideShare a Scribd company logo
1 of 25
Download to read offline
Predictive Analysis using
Microsoft SQL Server R Services
Advanced Analytics
Introduction
Speaker
• Fisnik Doko
Microsoft Certified Trainer
• 21 active certificates - Microsoft
• MCSD: App Builder | Web applications
• MCSE: Data Management and Analytics | Data Platform
• MCSE: Cloud Platform and Infrastructure
• Software Architect
• Consultant
• Speaker
Content
• Advanced Analytics Introduction
• What is R?
• What is Microsoft R?
• Microsoft SQL Server R Services
• R for machine learning
• Demo
• R and Python
Diagnostic
[Interactive Dashboards]
Prescriptive
[Recommendations & Automation]
Predictive
[Machine Learning]
Descriptive
[Reports]
What should
I do?
What will
happen?
Why did it
happen?
What
happened? Insight
From data to decisions and actions
Retail & Consumer Products
Healthcare
Financial Services & Insurance
Government
Manufacturing
€
Industries applying advanced analytics
Typical Predictive Analytics Process
• Prepare: Assemble,
cleanse, profile and
transform diverse data
relevant to the subject
OperationalizeModelPrepare
SQL Query Data Science R in Database
What is
• A statistics programming language
• A data visualization tool
• Open source
• 2.5+M users
• Taught in most universities
• Thriving user groups worldwide
• 15 000+ free algorithms in CRAN
• Machine Learning includes 400+ R packages
• Scalable to big data
• New and recent grad’s use it
Language
Platform
Community
Ecosystem
• Rich application & platform integration
R
Revolution Analytics
• Revolution Analytics was founded in 2007
• On January 23, 2015 Microsoft purchased Revolution
Analytics
Microsoft R Client
• Freely available and based on Microsoft Open R
• Run locally
• Can install any open source R packages
• Limited to two threads
• Datasets must fit in memory
• Chunking data is not available
• Can interact with R Server
What is Microsoft R Server?
• Renamed to Microsoft Machine Learning Server (SQL 2017)
• Added support for the full data science lifecycle of Python
• Multithreaded Performance, parallelization, and distributed
• RevoScaleR package machine learning, supports data
science at scale
• MicrosoftML package for distributed machine learning
• Operationalization functions for deploying to remote servers
What is SQL Server R Services?
• An implementation of Microsoft R Server, optimized for SQL
Server
• Intended to run R code stored within the database
• Supports enterprise-scale data science
• Helps you embrace the highly popular open source R
language in your business.
• R processes execute outside of the database engine
• Security is handled by SQL Server Trusted Launchpad
Set up SQL Server R Services (In-Database)
• Step 1: Install R Services (In-Database) on SQL Server 2017
• Step 2: Enable R Service
• Step 3: Launchpad Service
R in SQL Server
Develop
• R Tools for Visual Studio
• RStudio
Running R code from SQL Server
• Run R code from SQL Server using the
sp_execute_external_script stored procedure
• You can:
• Run arbitrary R code
• Provide input parameters that can be referenced by the R code
• Specify an input dataset
• Return an output dataset, plot od model
• New stored procedure
EXEC sp_execute_external_script
@language = N’R’,
@script = N’[R code goes here]’,
@input_data_1 = N’[SQL input]’
[ , @input_data_1_name = N‘InputDataSet’ ]
[ , @output_data_1_name = N’OutputDataSet’ ]
[ , @params = N’parameter’ ]
WITH RESULT SETS (([SQL output]));
input_data_1_name and
output_data_1_name are optional
and default to InputDataSet and
OutputDataSet respectively
Operationalized R
1. Transform Data
2. Evaluate data
3. Build model
4. Save model to
stored proc.
SQL
Server
2017
Web
App
Deploy
Powerful R Capabilities SQL Server
• Meeting the Needs of R and SQL Users With One Platform
• R users can:
• Load, transform, visualize, learn from data assets in SQL
• Create or “train” predictive models
• Scale R analytics to big data using SQL Server R Services
• Connect to SQL from R Tools for Visual Studio or third party IDEs (R Studio)
• Deploy and operationalize applications that use these predictions
• SQL Users can:
• Embed R to access predictive analytics from SQL
• Run R scripts and Modeling algorithms from T-SQL scripts and within stored
procedures
• Extend R capabilities to data engineers and application developers
• Easily embed prediction into BI and custom applications
Demonstration
• Build a predictive model using R and SQL Server ML
Services
• Ski rental business - predict the number of rentals
that we will have on a future date
Why use R for machine learning?
• Statistical analysis comprises three common tasks:
• Data transformation
• Data visualization
• Data modeling
• R provides an array of packages to help you perform these tasks
• R also provides programming constructs to build a workflow of
operations
• R is interactive; you can quickly prototype your operations
• R packages can be written using compiled languages, for speed
• View the results using the Visualize command on the output ports
Why use Python for machine learning?
• Fully-fledged programming language
• Portable, and runs on many different operating systems
• Frequently used to provide the glue to integrate components
developed in different languages
• Excellent for transforming data between formats
• More complex than R; it supports advanced OO features
• Packages developed in other compiled languages can be
easily incorporated
Selecting the appropriate language
• R is favored by data scientists because it expresses statistical
concepts concisely
• R is favored by programmers because it is more general
purpose and powerful
• R has a broader range of statistical packages available
• Python has a more consistent syntax
• Both languages can interoperate with each other
Thanks!
Any Questions?

More Related Content

What's hot

Resume_PhilLopez_Oct2016
Resume_PhilLopez_Oct2016Resume_PhilLopez_Oct2016
Resume_PhilLopez_Oct2016phillip Lopez
 
Visualizing Graph Data with Geographical Information #dataviz
Visualizing Graph Data with Geographical Information #datavizVisualizing Graph Data with Geographical Information #dataviz
Visualizing Graph Data with Geographical Information #datavizTina Lim
 
Neo4j-Databridge: Enterprise-scale ETL for Neo4j
Neo4j-Databridge: Enterprise-scale ETL for Neo4jNeo4j-Databridge: Enterprise-scale ETL for Neo4j
Neo4j-Databridge: Enterprise-scale ETL for Neo4jNeo4j
 
Microsoft Office and Windows Migration Readiness Suite
Microsoft Office and Windows Migration Readiness SuiteMicrosoft Office and Windows Migration Readiness Suite
Microsoft Office and Windows Migration Readiness SuiteConverterTechnology
 
GraphQL Advanced
GraphQL AdvancedGraphQL Advanced
GraphQL AdvancedLeanIX GmbH
 
GraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4j
GraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4jGraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4j
GraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4jNeo4j
 
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...Laura Stack
 
Fifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopFifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopKetan Khairnar
 
GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom
GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom
GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom Neo4j
 
Building a web app on top of R (Slides from PAPIs 2014)
Building a web app on top of R (Slides from PAPIs 2014)Building a web app on top of R (Slides from PAPIs 2014)
Building a web app on top of R (Slides from PAPIs 2014)zhvihti
 
50 Billion pins and counting: Using Hadoop to build data driven Products
50 Billion pins and counting: Using Hadoop to build data driven Products50 Billion pins and counting: Using Hadoop to build data driven Products
50 Billion pins and counting: Using Hadoop to build data driven ProductsDataWorks Summit
 
Whats new in sql server 2008 and r2 for programmers
Whats new in sql server 2008 and r2 for programmersWhats new in sql server 2008 and r2 for programmers
Whats new in sql server 2008 and r2 for programmersAntonios Chatzipavlis
 
Project Overview xml
Project Overview xmlProject Overview xml
Project Overview xmlRahi Patil
 
Introduction to graphQL
Introduction to graphQLIntroduction to graphQL
Introduction to graphQLMuhilvarnan V
 

What's hot (20)

Jessica Cinquanta Resume
Jessica Cinquanta ResumeJessica Cinquanta Resume
Jessica Cinquanta Resume
 
Resume_PhilLopez_Oct2016
Resume_PhilLopez_Oct2016Resume_PhilLopez_Oct2016
Resume_PhilLopez_Oct2016
 
Visualizing Graph Data with Geographical Information #dataviz
Visualizing Graph Data with Geographical Information #datavizVisualizing Graph Data with Geographical Information #dataviz
Visualizing Graph Data with Geographical Information #dataviz
 
Neo4j-Databridge: Enterprise-scale ETL for Neo4j
Neo4j-Databridge: Enterprise-scale ETL for Neo4jNeo4j-Databridge: Enterprise-scale ETL for Neo4j
Neo4j-Databridge: Enterprise-scale ETL for Neo4j
 
AWS Dev Day 2018
AWS Dev Day 2018AWS Dev Day 2018
AWS Dev Day 2018
 
Curriculum Vitae - Kenneth
Curriculum Vitae - KennethCurriculum Vitae - Kenneth
Curriculum Vitae - Kenneth
 
Microsoft Office and Windows Migration Readiness Suite
Microsoft Office and Windows Migration Readiness SuiteMicrosoft Office and Windows Migration Readiness Suite
Microsoft Office and Windows Migration Readiness Suite
 
GraphQL Advanced
GraphQL AdvancedGraphQL Advanced
GraphQL Advanced
 
CV_Anshul_PPM
CV_Anshul_PPMCV_Anshul_PPM
CV_Anshul_PPM
 
GraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4j
GraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4jGraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4j
GraphConnect 2014 SF: How eBay and Shutl Deliver Even Faster Using Neo4j
 
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...
 
Fifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopFifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshop
 
GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom
GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom
GraphDay Paris - Intro & Découverte de l'outil de visualisation Neo4j Bloom
 
Building a web app on top of R (Slides from PAPIs 2014)
Building a web app on top of R (Slides from PAPIs 2014)Building a web app on top of R (Slides from PAPIs 2014)
Building a web app on top of R (Slides from PAPIs 2014)
 
50 Billion pins and counting: Using Hadoop to build data driven Products
50 Billion pins and counting: Using Hadoop to build data driven Products50 Billion pins and counting: Using Hadoop to build data driven Products
50 Billion pins and counting: Using Hadoop to build data driven Products
 
Resume 2015 SW
Resume 2015 SWResume 2015 SW
Resume 2015 SW
 
Whats new in sql server 2008 and r2 for programmers
Whats new in sql server 2008 and r2 for programmersWhats new in sql server 2008 and r2 for programmers
Whats new in sql server 2008 and r2 for programmers
 
Resume_Vellaiyan
Resume_VellaiyanResume_Vellaiyan
Resume_Vellaiyan
 
Project Overview xml
Project Overview xmlProject Overview xml
Project Overview xml
 
Introduction to graphQL
Introduction to graphQLIntroduction to graphQL
Introduction to graphQL
 

Similar to Predictive Analysis using Microsoft SQL Server R Services

Bluegranite AA Webinar FINAL 28JUN16
Bluegranite AA Webinar FINAL 28JUN16Bluegranite AA Webinar FINAL 28JUN16
Bluegranite AA Webinar FINAL 28JUN16Andy Lathrop
 
Advanced analytics with R and SQL
Advanced analytics with R and SQLAdvanced analytics with R and SQL
Advanced analytics with R and SQLMSDEVMTL
 
Machine learning services with SQL Server 2017
Machine learning services with SQL Server 2017Machine learning services with SQL Server 2017
Machine learning services with SQL Server 2017Mark Tabladillo
 
Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...
Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...
Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...Rui Quintino
 
Analytics with R in SQL Server 2016
Analytics with R in SQL Server 2016Analytics with R in SQL Server 2016
Analytics with R in SQL Server 2016HARIHARAN R
 
The Polyglot Data Scientist - Exploring R, Python, and SQL Server
The Polyglot Data Scientist - Exploring R, Python, and SQL ServerThe Polyglot Data Scientist - Exploring R, Python, and SQL Server
The Polyglot Data Scientist - Exploring R, Python, and SQL ServerSarah Dutkiewicz
 
Introduction to Microsoft R (Graph)
Introduction to Microsoft R (Graph)Introduction to Microsoft R (Graph)
Introduction to Microsoft R (Graph)Cheah Eng Soon
 
Introduction to Microsoft R
Introduction to Microsoft RIntroduction to Microsoft R
Introduction to Microsoft RCheah Eng Soon
 
Skill_Level_ Strider
Skill_Level_ StriderSkill_Level_ Strider
Skill_Level_ StriderTushar R
 
Using R services with Machine Learning
Using R services with Machine LearningUsing R services with Machine Learning
Using R services with Machine LearningEng Teong Cheah
 
Intro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with sparkIntro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with sparkAlex Zeltov
 
A practical guidance of the enterprise machine learning
A practical guidance of the enterprise machine learning A practical guidance of the enterprise machine learning
A practical guidance of the enterprise machine learning Jesus Rodriguez
 
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...ITCamp
 
Chris2015 - Brief
Chris2015 - BriefChris2015 - Brief
Chris2015 - BriefChris Moore
 
Colinsobersbiresume 20120723doc
Colinsobersbiresume 20120723docColinsobersbiresume 20120723doc
Colinsobersbiresume 20120723doccolinsobers
 
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...Alexandr Savchenko
 
"Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa..."Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa...Fwdays
 

Similar to Predictive Analysis using Microsoft SQL Server R Services (20)

Bluegranite AA Webinar FINAL 28JUN16
Bluegranite AA Webinar FINAL 28JUN16Bluegranite AA Webinar FINAL 28JUN16
Bluegranite AA Webinar FINAL 28JUN16
 
Advanced analytics with R and SQL
Advanced analytics with R and SQLAdvanced analytics with R and SQL
Advanced analytics with R and SQL
 
Machine learning services with SQL Server 2017
Machine learning services with SQL Server 2017Machine learning services with SQL Server 2017
Machine learning services with SQL Server 2017
 
Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...
Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...
Microsoft Data Platform Airlift 2017 Rui Quintino Machine Learning with SQL S...
 
Michal Marušan: Scalable R
Michal Marušan: Scalable RMichal Marušan: Scalable R
Michal Marušan: Scalable R
 
Analytics with R in SQL Server 2016
Analytics with R in SQL Server 2016Analytics with R in SQL Server 2016
Analytics with R in SQL Server 2016
 
The Polyglot Data Scientist - Exploring R, Python, and SQL Server
The Polyglot Data Scientist - Exploring R, Python, and SQL ServerThe Polyglot Data Scientist - Exploring R, Python, and SQL Server
The Polyglot Data Scientist - Exploring R, Python, and SQL Server
 
Introduction to Microsoft R (Graph)
Introduction to Microsoft R (Graph)Introduction to Microsoft R (Graph)
Introduction to Microsoft R (Graph)
 
Introduction to Microsoft R
Introduction to Microsoft RIntroduction to Microsoft R
Introduction to Microsoft R
 
Skill_Level_ Strider
Skill_Level_ StriderSkill_Level_ Strider
Skill_Level_ Strider
 
Using R services with Machine Learning
Using R services with Machine LearningUsing R services with Machine Learning
Using R services with Machine Learning
 
AhmedWasfi2015
AhmedWasfi2015AhmedWasfi2015
AhmedWasfi2015
 
Intro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with sparkIntro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with spark
 
Ml2
Ml2Ml2
Ml2
 
A practical guidance of the enterprise machine learning
A practical guidance of the enterprise machine learning A practical guidance of the enterprise machine learning
A practical guidance of the enterprise machine learning
 
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
 
Chris2015 - Brief
Chris2015 - BriefChris2015 - Brief
Chris2015 - Brief
 
Colinsobersbiresume 20120723doc
Colinsobersbiresume 20120723docColinsobersbiresume 20120723doc
Colinsobersbiresume 20120723doc
 
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
 
"Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa..."Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa...
 

More from Fisnik Doko

Developing Solutions for Azure - Best Practices
Developing Solutions for Azure - Best PracticesDeveloping Solutions for Azure - Best Practices
Developing Solutions for Azure - Best PracticesFisnik Doko
 
Building Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft AzureBuilding Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft AzureFisnik Doko
 
Power BI measure and visualize project success
Power BI measure and visualize project successPower BI measure and visualize project success
Power BI measure and visualize project successFisnik Doko
 
Microsoft's modern technologies
Microsoft's modern technologiesMicrosoft's modern technologies
Microsoft's modern technologiesFisnik Doko
 
C# 7 development
C# 7 developmentC# 7 development
C# 7 developmentFisnik Doko
 
Analyses and processing of big data in financial services
Analyses and processing of big data in financial servicesAnalyses and processing of big data in financial services
Analyses and processing of big data in financial servicesFisnik Doko
 
HTML5 features & JavaScript APIs
HTML5 features & JavaScript APIsHTML5 features & JavaScript APIs
HTML5 features & JavaScript APIsFisnik Doko
 

More from Fisnik Doko (7)

Developing Solutions for Azure - Best Practices
Developing Solutions for Azure - Best PracticesDeveloping Solutions for Azure - Best Practices
Developing Solutions for Azure - Best Practices
 
Building Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft AzureBuilding Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft Azure
 
Power BI measure and visualize project success
Power BI measure and visualize project successPower BI measure and visualize project success
Power BI measure and visualize project success
 
Microsoft's modern technologies
Microsoft's modern technologiesMicrosoft's modern technologies
Microsoft's modern technologies
 
C# 7 development
C# 7 developmentC# 7 development
C# 7 development
 
Analyses and processing of big data in financial services
Analyses and processing of big data in financial servicesAnalyses and processing of big data in financial services
Analyses and processing of big data in financial services
 
HTML5 features & JavaScript APIs
HTML5 features & JavaScript APIsHTML5 features & JavaScript APIs
HTML5 features & JavaScript APIs
 

Recently uploaded

buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutionsmonugehlot87
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 

Recently uploaded (20)

buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutions
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 

Predictive Analysis using Microsoft SQL Server R Services

  • 1. Predictive Analysis using Microsoft SQL Server R Services Advanced Analytics Introduction
  • 2. Speaker • Fisnik Doko Microsoft Certified Trainer • 21 active certificates - Microsoft • MCSD: App Builder | Web applications • MCSE: Data Management and Analytics | Data Platform • MCSE: Cloud Platform and Infrastructure • Software Architect • Consultant • Speaker
  • 3. Content • Advanced Analytics Introduction • What is R? • What is Microsoft R? • Microsoft SQL Server R Services • R for machine learning • Demo • R and Python
  • 4. Diagnostic [Interactive Dashboards] Prescriptive [Recommendations & Automation] Predictive [Machine Learning] Descriptive [Reports] What should I do? What will happen? Why did it happen? What happened? Insight From data to decisions and actions
  • 5. Retail & Consumer Products Healthcare Financial Services & Insurance Government Manufacturing € Industries applying advanced analytics
  • 6. Typical Predictive Analytics Process • Prepare: Assemble, cleanse, profile and transform diverse data relevant to the subject OperationalizeModelPrepare SQL Query Data Science R in Database
  • 7. What is • A statistics programming language • A data visualization tool • Open source • 2.5+M users • Taught in most universities • Thriving user groups worldwide • 15 000+ free algorithms in CRAN • Machine Learning includes 400+ R packages • Scalable to big data • New and recent grad’s use it Language Platform Community Ecosystem • Rich application & platform integration R
  • 8.
  • 9. Revolution Analytics • Revolution Analytics was founded in 2007 • On January 23, 2015 Microsoft purchased Revolution Analytics
  • 10. Microsoft R Client • Freely available and based on Microsoft Open R • Run locally • Can install any open source R packages • Limited to two threads • Datasets must fit in memory • Chunking data is not available • Can interact with R Server
  • 11. What is Microsoft R Server? • Renamed to Microsoft Machine Learning Server (SQL 2017) • Added support for the full data science lifecycle of Python • Multithreaded Performance, parallelization, and distributed • RevoScaleR package machine learning, supports data science at scale • MicrosoftML package for distributed machine learning • Operationalization functions for deploying to remote servers
  • 12. What is SQL Server R Services? • An implementation of Microsoft R Server, optimized for SQL Server • Intended to run R code stored within the database • Supports enterprise-scale data science • Helps you embrace the highly popular open source R language in your business. • R processes execute outside of the database engine • Security is handled by SQL Server Trusted Launchpad
  • 13. Set up SQL Server R Services (In-Database) • Step 1: Install R Services (In-Database) on SQL Server 2017 • Step 2: Enable R Service • Step 3: Launchpad Service
  • 14.
  • 15. R in SQL Server
  • 16. Develop • R Tools for Visual Studio • RStudio
  • 17. Running R code from SQL Server • Run R code from SQL Server using the sp_execute_external_script stored procedure • You can: • Run arbitrary R code • Provide input parameters that can be referenced by the R code • Specify an input dataset • Return an output dataset, plot od model
  • 18. • New stored procedure EXEC sp_execute_external_script @language = N’R’, @script = N’[R code goes here]’, @input_data_1 = N’[SQL input]’ [ , @input_data_1_name = N‘InputDataSet’ ] [ , @output_data_1_name = N’OutputDataSet’ ] [ , @params = N’parameter’ ] WITH RESULT SETS (([SQL output])); input_data_1_name and output_data_1_name are optional and default to InputDataSet and OutputDataSet respectively Operationalized R
  • 19. 1. Transform Data 2. Evaluate data 3. Build model 4. Save model to stored proc. SQL Server 2017 Web App Deploy
  • 20. Powerful R Capabilities SQL Server • Meeting the Needs of R and SQL Users With One Platform • R users can: • Load, transform, visualize, learn from data assets in SQL • Create or “train” predictive models • Scale R analytics to big data using SQL Server R Services • Connect to SQL from R Tools for Visual Studio or third party IDEs (R Studio) • Deploy and operationalize applications that use these predictions • SQL Users can: • Embed R to access predictive analytics from SQL • Run R scripts and Modeling algorithms from T-SQL scripts and within stored procedures • Extend R capabilities to data engineers and application developers • Easily embed prediction into BI and custom applications
  • 21. Demonstration • Build a predictive model using R and SQL Server ML Services • Ski rental business - predict the number of rentals that we will have on a future date
  • 22. Why use R for machine learning? • Statistical analysis comprises three common tasks: • Data transformation • Data visualization • Data modeling • R provides an array of packages to help you perform these tasks • R also provides programming constructs to build a workflow of operations • R is interactive; you can quickly prototype your operations • R packages can be written using compiled languages, for speed • View the results using the Visualize command on the output ports
  • 23. Why use Python for machine learning? • Fully-fledged programming language • Portable, and runs on many different operating systems • Frequently used to provide the glue to integrate components developed in different languages • Excellent for transforming data between formats • More complex than R; it supports advanced OO features • Packages developed in other compiled languages can be easily incorporated
  • 24. Selecting the appropriate language • R is favored by data scientists because it expresses statistical concepts concisely • R is favored by programmers because it is more general purpose and powerful • R has a broader range of statistical packages available • Python has a more consistent syntax • Both languages can interoperate with each other