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.

Slides:



Advertisements
Similar presentations
9/24/2017 7:27 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Advertisements

Make your app a native part of Office with Add-ins
Successfully migrate existing databases to Azure SQL Database
Secure Hyperconnectivity with TeamViewer and Windows technologies
From IT Pros to IT Heroes - with Azure DevTest Labs
5/22/2018 1:39 AM BRK2156 Power BI Report Server: Self-service BI and enterprise reporting on-premises Christopher Finlan Senior Program Manager © Microsoft.
Azure Machine Learning Deploying and Managing Models in production
Creating Enterprise Grade BI Models with Azure Analysis Services
How Microsoft uses Windows Defender ATP–Welcome to a SecOps world!
Delivering enterprise BI with Azure Analysis Services
Use any Amazon S3 application with Azure Blob Storage
Azure Cloud Shell Magic of Modern Command-line Management
AI development using Data Science Virtual Machines (DSVM) in Azure
Windows 10 and the cloud: Why the future needs hybrid solutions
Oracle To SQL Migration – Beyond SSMA (SQL Server Migration Assistant)
Azure SDKs and Tools for You
Do more with Microsoft Word and Office 365
7/2/2018 2:39 AM BRK2413 Customer lifecycle with LCS: Dynamics 365 for Finance and Operations, Enterprise edition Manali Dongre Senior Program Manager.
Optimizing Microsoft OneDrive for the enterprise
Performing a Seamless Migration in Azure SQL DB
Virtual Machine Diagnostics in Microsoft Azure
Azure Machine Learning Algorithm Accuracy Enhancement, Tips and Tricks
SQL Server on Linux on All-Flash Arrays
Microsoft Ignite /31/ :08 AM
8/6/ :17 AM THR2214 Hybrid Cloud Activated A customer case study optimizing on-premises & Azure performance and cost Mor Cohen-Tal Senior Product.
Understanding Windows Analytics Update Compliance
Excel and Power BI Better Together Democratization of data
SQL Server for Java developers
Workflow Orchestration with Adobe I/O
Customize Office 365 Search and create result sources
Automate all things! Microsoft Azure continuous deployment
9/14/ :46 AM BRK3293 How the Portland Trail Blazers Use Personalization and Acxiom Data to Target Customers Chris Hoder Program Manager, AI + Research.
Understanding best practices in classifying sensitive data
Agile Planning with Visual Studio Team Services (VSTS)
9/22/2018 3:49 AM BRK2247 Learn from MVPs: Panel discussion on all things SharePoint and OneDrive © Microsoft Corporation. All rights reserved. MICROSOFT.
Azure PowerShell Aaron Roney Senior Program Manager Cormac McCarthy
Continuous Delivery for Microsoft Azure
Microsoft Ignite /17/2018 2:42 AM BRK2223
11/17/2018 6:41 PM BRK3392 Windows 10 servicing explained (WAAS) Deploying Windows as an inplace upgrade Adnan Hendricks Microspecialist
Azure SQL Database: A Guided Tour
11/22/2018 1:43 PM THR3005 How to provide business insight from your data using Azure Analysis Services Peter Myers Bitwise Solutions © Microsoft Corporation.
Continuous Delivery with Visual Studio Team Services
Bring existing desktop apps to UWP with the Desktop Bridge
PowerShell Unplugged Jeffrey Snover Technical Fellow
Mobile Center and VSTS:​ Better together for your Mobile DevOps
TechEd /4/2018 3:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft products for non-profits
Power-up NoSQL with Azure Cosmos DB
Automating security for better, continuous compliance in the cloud
Introduction to ASP.NET Core 1.0
1/2/2019 5:18 PM THR3016 Customer stories: Plan and orchestrate large resource deployments on Azure infrastructure Igal Figlin Principal PM Manager – Azure.
MDM Migration Analysis Tool (MMAT)
Overview: Dynamics 365 for Project Service Automation
Understand your Azure cloud assets dependencies with BMC Discovery
Surviving identity management in a hybrid world
Breaking Down the Value of A Yammer Post: 20 Things to Do
Cool Microsoft Edge Tips and Tricks
When Bad Things Happen to Good Applications
Getting the most out of Azure resources with Azure Advisor
Manage your App Service resources using Command line tools
“Hey Mom, I’ll Fix Your Computer”
4/21/2019 7:09 AM THR2098 Unlock New Opportunities with Nintex Hawkeye Process Intelligence and Workflow Analytics Sr. Product.
Service Template Creation from the Ground Up
Designing Bots that Fit Your Organization
Ask the Experts: Windows 10 deployment and servicing
Passwordless Service Accounts
Digital Transformation: Putting the Jigsaw Together
WCF and .NET Framework Microservices in Containers
Diagnostics and troubleshooting in Azure App Service Support Center
Optimizing your content for search and discovery
Presentation transcript:

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 Managers © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda Machine Learning Intro SQL Server Machine Learning Services Customer scenarios What’s coming?

Bringing intelligence to where data lives Application Application + Intelligence VS Intelligence + Database Database Regular Database + App Intelligence Database + App

Why Machine Learning in SQL Server? 5/16/2018 3:45 AM Why Machine Learning in SQL Server? Eliminate data movement Leverage database security Push ML compute to the database R integration Python integration Operationalize ML scripts and models Calling familiar T-SQL stored procedures Model management in SQL Server Data Scientist Interacts directly with data Analytics library Enterprise grade performance and scale Scale your R and Python analytics with multi- threading and parallel processing SQL Server security, compliance, resource governance, query performance, always on secondaries 010101 100100 010010 010101 100100 010010 010010 100100 010101 SQL Developer/ DBA SQL Transformations Relational data Manage data and analytics together © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Customer Story - PROS Pricing Optimization Segmentation Expert Target Floor Group customers, products & transactions into micro-segments of similar willingness-to-pay Apply optimization algorithms to target the pricing envelope ‘sweet spot’ in every segment

Attribute Selection Tool 5/16/2018 3:45 AM Before After SQL Server Attribute Selection Tool C++/R SQL Server Attribute Selection sp_execute_external_script ‘R code’ Data tables Data tables Segmentation Tool C++/R Segmentation sp_execute_external_script ‘R code’ Stored Proc Scoring sp_execute_external_script ‘R code’ © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Customer stories ATTOM Data Solutions Acxiom Heartland Bank ATTOM will be able to take advantage of a host of new capabilities, including machine learning and predictive analytics. ATTOM Data Solutions Real estate property insights Acxiom Migrating from SAS Targeted marketing campaigns Heartland Bank Build financial models With R Services, Acxiom is building better, more accurate models using larger data sets, which results in more precisely targeted marketing for customers. The bank has moved its credit scorecard development, arrears analysis, investment forecasting, and analysis of intermediary and broker performance to the R Server platform.

5/16/2018 3:45 AM Hello Iris! Demo © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

SQL Server Machine Learning Services R support (3.2.2 version) Microsoft R Server (under Modern Lifecycle Policy) SQL Server 2017 Native scoring using PREDICT function (+Linux support) EXTERNAL LIBRARY DDL for R package management Batch mode execution support for input data R support (3.3.3 version) Python support (Anaconda 3.5.2)

Azure SQL Database Machine Learning Services Native scoring using PREDICT function R support preview (3.3.3 version) Available in West Central US Region Premium & Premium RS Service Tiers Base R packages & RevoscaleR package Training & Scoring of Models that fit in memory Trivial Parallelism & Streaming support One concurrent execution of R script

Machine Learning Server 5/16/2018 3:45 AM Machine Learning Server Multi-platform support Windows, Linux, Hadoop, SQL Server Microsoft R Server RevoScaleR, MicrosoftML, olapR, sqlrutils packages Web services operationalization Microsoft Machine Learning Server R & Python support revoscalepy, microsoftml python libraries rxExecBy Hadoop Licensing changes 5 nodes for every SQL Server EE core under Software Assurance © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Data Scientists - Data Exploration and Model Development Microsoft Tech Summit FY17 5/16/2018 3:45 AM Data Scientists - Data Exploration and Model Development train <- RxSqlServerData(query, connectionString, computeContext) rxLogit(formula, train) 2 Execution 1 Script SQL Server Data Scientist Workstation 3 Results Machine Learning Services Any R/Python IDE R/Python Runtime © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Machine Learning Services Microsoft Data Amp 5/16/2018 3:45 AM Application Developer - Model Operationalization 2 Execution Stored Proc call Results 1 3 The stored procedure contains R or Python code and executes in-database SQL Server Application Machine Learning Services exec sp_execute_external_script @language = ‘Python’ , @script = -- Python code -- R/Python Runtime © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Hospital Length of Stay 5/16/2018 3:45 AM Hospital Length of Stay HeaIthcare ISV building intelligence into their application Allow hospitals to optimize resource allocation Dashboard that shows Predictions against actuals © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Operationalize Length of Stay Predictions Problem Predict accurately how long a newly admitted patient will stay in the hospital Solution Build a model using anonymized patient data Operationalize model using T-SQL stored procedures Train Model using Anonymized data Anonymized Patient information Key variables are number of previous admissions, diagnostic codes, lab results Operationalize Model in Azure SQL Database Deploy model to production database Use model to predict length of stay

Predict patient length of stay 5/16/2018 3:45 AM Predict patient length of stay Demo © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Realtime Predictions using Native Scoring 5/16/2018 3:45 AM Realtime Predictions using Native Scoring PREDICT function No dependency on R or Python runtime Enabled on SQL Server in Windows & Linux Usage Single or small number of rows scoring Highly concurrent scoring scenarios Predict during INSERT, UPDATE, MERGE statements Requirements Models built using RevoScaleR or revoscalepy rxLinMod, rxLogit, rxBTrees, rxDTree, rxDForest Serialized using rxSerializeModel (R) or rx_serialize_model (Python) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

PREDICT syntax PREDICT ( MODEL = @model | model_literal, 5/16/2018 3:45 AM PREDICT syntax PREDICT ( MODEL = @model | model_literal, DATA = object AS <table_alias> ) WITH ({ {column_definition } [,...n ] } ) INSERT INTO loan_applications (c1, c2, c3, c4, risk_score) SELECT d.c1, d.c2, d.c3, d.c4, p.score FROM PREDICT(MODEL = @model, DATA = @input as d) WITH(score float) as p; © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Fraud Detection using PREDICT Problem Detect potentially fraudulent transactions with low latency Solution Build a model to learn patterns of fraudulent transactions Train Model using Sample data Historical labelled credit transactions, risk factors for IP address/geographical data, transaction characteristics, account information Operationalize scoring using PREDICT Use model to get probability of fraud for new transactions Use PREDICT to score transactions during INSERT

Fraud detection using PREDICT 5/16/2018 3:45 AM Fraud detection using PREDICT Demo © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Deploy predictive analytics Make your app/reports intelligent by consuming predictions Deploy your ML scripts with sp_execute_external_ script and predict using the models Train models with sp_execute_external_ script and save the models in database Develop, explore and experiment in your favorite IDE Develop Train Deploy Consume

Roadmap Machine Learning Services in Azure SQL Database Future release 5/16/2018 3:45 AM Roadmap Machine Learning Services in Azure SQL Database Configuration & Monitoring R support MicrosoftML Package Package installation / management using CREATE EXTERNAL LIBRARY DDL SQL Compute Context support from client or R script executing on the server Parallel execution for R Server models Python support Future release Machine Learning Services in SQL Server on Linux Failover cluster support Partitioning support for input data © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Call to action Resources BRK3261 5/16/2018 3:45 AM Call to action Resources SQL Server Samples – R Services & ML Services SSMS Reports for ML Services SQL Server Machine Learning Services (aka.ms/mlsqldev) Getting started ML tutorials SQL Server Developer Tutorials (aka.ms/sqldev) Getting started SQL tutorials BRK3261 Performance Patterns for SQL Server Machine Learning Services © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Please evaluate this session Tech Ready 15 5/16/2018 Please evaluate this session From your Please expand notes window at bottom of slide and read. Then Delete this text box. PC or tablet: visit MyIgnite https://myignite.microsoft.com/evaluations Phone: download and use the Microsoft Ignite mobile app https://aka.ms/ignite.mobileapp Your input is important! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

What is Machine Learning? 5/16/2018 3:45 AM What is Machine Learning? Uses data mining and learning techniques to train models using historical data to predict future outcomes Examples Predict store sales based on historical performance Predict default of a loan based on loan/transaction history Predict sentiment of a new tweet or review or call log Classify customers into groups based on transaction characteristics Classify images and extract features from images © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.