Moving advanced analytics to your SQL Server databases

Slides:



Advertisements
Similar presentations
René Balzano Technology Solution Professional Data Platform Microsoft Switzerland Database Development with SQL Server Data Tools (SSDT)
Advertisements

Creating No-Code Solutions using Access Web Apps (in SharePoint with SQL Azure ) SharePoint Saturday, Columbus, August 2015 Andy Tabisz, WorkSmart Database.
Extending SQL Server Integration Services Bret Stateham Training Manager Vortex Learning Solutions blogs.netconnex.com.
ADAPTING YOUR ETL SOLUTION TO USE SSIS 2012 Presentation by Devin Knight
Cloud-Ready Data Services. cloud data services.
Harnessing Big Data with Hadoop Dipti Sangani; Madhu Reddy DBI210.
This document and the information contained herein is confidential and proprietary to Allegient LLC and shall not be duplicated, used or disclosed in whole.
PASS BA Virtual Chapter Presents: “Rise of the Machine (Learning)” November 18,
Internal Modern Data Platform Somnath Data Platform Architect.
9/24/2017 7:27 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Via the REST API and Power BI Embedded Jan Pieter Posthuma
Predicting Loan Delinquency at 1M Transactions per Second
Give more power to the users! - Decision Support Using Power BI
Bhakthi Liyanage SQL Saturday Atlanta 15 July 2017
Microsoft’s shiny dashboard-tool
Data Platform and Analytics Foundational Training
Data Platform and Analytics Foundational Training
PASS Business Analytics Virtual Group & Michael Johnson
5/16/2018 3:45 AM BRK3298 Building machine learning applications using R and Python in SQL Server 2017 Umachandar Jayachandran (UC) Sumit Kumar Program.
SQL Server deployments
Thank You! #sqlsatdnipro Denis
Make Predictions Using Azure Machine Learning Studio
Bridging the Data Science and SQL Divide for Practitioners
Data Insights Big Data v3.1 Customer Flyer
Jim Nakashima Program Manager – Cloud Tools Microsoft Corporation
Azure Functions and Automation: The SQL Agent in the Cloud
Azure Machine Learning Algorithm Accuracy Enhancement, Tips and Tricks
Microsoft Ignite /22/2018 3:27 PM BRK2121
Introduction to R Programming with AzureML
Data Mining It's not the size of your data it's what you do with it
SQL Server Integration Services
9/14/ :46 AM BRK3293 How the Portland Trail Blazers Use Personalization and Acxiom Data to Target Customers Chris Hoder Program Manager, AI + Research.
Azure Machine Learning & ML Studio
Add intelligence to Dynamics AX with Cortana Intelligence suite
Introducing the SQL Server 2016 Query Store
Introducing the SQL Server 2016 Query Store
Amit Banerjee Sr. Program Manager Microsoft Data Platform Group
Intro to Machine Learning
R'em All. Use R in Power BI to Deal with Data
Microsoft Ignite /17/2018 2:42 AM BRK2223
Enrico van de Laar & Tomaž Kaštrun
Microsoft Ignite /22/2018 3:58 PM BRK2254
Predicting demonic possession using Azure Machine Learning
Accelerate Your Self-Service Data Analytics
Introducing the SQL Server 2016 Query Store
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Thank you Sponsors.
Orchestration and data movement with Azure Data Factory v2
Replace with Application Image
Welcome to SQL Saturday Denmark
SQL Server Performance Tuning Nowadays
XtremeData on the Microsoft Azure Cloud Platform:
THR1171 Azure Data Integration: Choosing between SSIS, Azure Data Factory, and Azure Databricks Cathrine Wilhelmsen, | cathrinew.net.
Analytics in the Cloud using Microsoft Azure
Workflow Development using Visual Studio 2017 for SharePoint online
Migrating your applications to Azure
Introduction into the Power BI REST API Jan Pieter Posthuma
Deep Into the Cosmos(DB)
What is this and how can I use it?
What is this and how can I use it?
Insight through Spatial Data
Predictive Models with SQL Server Machine Learning Services
Gilbert Quevauvilliers
SQL Server ML from End-to-End
Western Mass Microsoft Technology Users Group
Sessions about to start – Get your rig on!
This is the slide shown before the presentation starts
DEV2DEV Performance tips for faster SQL queries
Visual Data Flows – Azure Data Factory v2
Architecture of modern data warehouse
Presentation transcript:

Moving advanced analytics to your SQL Server databases Enrico van de Laar Moving advanced analytics to your SQL Server databases

Thanks to our Platinum sponsors! Please add this slide in your presentation

Thanks to our Gold and Silver sponsors! Please add this slide in your presentation

About Enrico van de Laar Co-Founder | Data & Advanced Analytics Consultant @ Data Masterminds Crazy Data Scientist Microsoft Data Platform MVP Author Speaker Blogger Twitter: @evdlaar Email: enricovandelaar@datamasterminds.io Web: http://www.dotnine.net www.crazydatascience.com

Plan for this session Advanced Analytics Worflow: then and now Building and exploiting in-database models sp_execute_external_script sp_rxPredict PREDICT Integration of Azure Machine Learning with in-database analytics

Advanced Analytics: then and now Traditionally Advanced Analytics processes extracted data That data would be used for model training/scoring and then send back to wherever it came from 1: Data from app is stored in a database 2: Data is pushed/pulled to model 3: prediction is returned and stored with the data 4: prediction returned to app from database

Advanced Analytics: then and now This process can be slow, especially when large datasets are involved There is always data movement involved How are we solving use-cases where (near) real-time scoring is required? How are we handling model management and operationalization? [ Demo time ]

Advanced Analytics: then and now The solution: “in-database” analytics New feature in SQL Server 2016 (R Services In-database) Expanded in SQL Server 2017 (Machine Learning Services In-database) Instead of bringing data to the model, we are bringing the model to the data 2016 Introduced R support 2017 Expanded with Python Advantages: No data movement, model management integrated in SQL Server, direct access to data

Building and exploiting in-db models Three methods available for model training and scoring sp_execute_external_script (SQL Server 2016) sp_rxPredict (SQL Server 2016) PREDICT (SQL Server 2017)

Building and exploiting in-db models sp_execute_external_script Supports both R and Python Not dependent on RevoScaleR or MicrosoftML algorithms External process Requires in-database R or ML feature sp_rxPredict Fast! Only R support Requires CLR integration Only supports RevoScaleR or MicrosoftML Algorithms Only returns predictions Requires in-database R or ML feature PREDICT Supports both R and Python Fast Easy TSQL integration Does not requires in-database R or ML feature Only SQL Server 2017 Only supports RevoScaleR algoritms

Demo Demo 1: Automobile price prediction with in-database analytics

Azure Machine Learning integration But what do you do when your model is stored inside Azure Machine Learning, but your data is on-premises inside a SQL Server database? We can use sp_execute_external_script to write R/Python code to perform a call to the AzureML predictive experiment! Normally we would need to push the data to AzureML

Demo Demo 2: AzureML integration with the Iris model

Summary We looked at the Advanced Analytics workflow and how in-databases analytics can impact it; Build and stored a model directly in SQL Server; Used the various methods to exploit the model and perform in-database predictions; Connected to an Azure Machine Learning predictive experiment to score data inside SQL Server.

Questions?

Resources Performing in-database predictions in SQL Server 2016/2017 https://bit.ly/2l4Q2ON Accessing AzureML models through SQL Server In-database R Services https://bit.ly/2zC3SNt Crazy Data Science http://www.crazydatascience.com

Please fill in the evaluations Please add this slide in your presentation