SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
Summer in Greece Festival
Microsoft Learn Student Ambassadors | GreeceMicrosoft Learn Student Ambassadors | Greece
Machine Learning
Services
in SQL Server 2019
1988 2000 Founderv 6.0 60 +2010
Antonios Chatzipavlis
Data Solutions Consultant & Trainer
Connect / Explore / Learn
V.102010 - 2020
A community for Greek professionals who use the
Microsoft Data Platform
Connect / Explore / Learn
WebminarsArticles
Videos News
EventsResources
@sqlschool@antoniosch
Sqlschoolgr
Page
Sqlschool
User Group
Sqlschool.gr
Group
SQLschoolGR
channel
Machine Learning Services
in
SQL Server 2019
Microsoft Learn Student Ambassadors | Greece
Data Analysis Scientific Process
• Create, Read, Update, Delete
• Programming Control
• Reporting
• Business Intelligence
• Statistics and Data Mining
• Story Telling
• Define the Question
• Create Hypothesis
• Create a Repeatable Test
• Publish Results
Data Science
Microsoft Learn Student Ambassadors | Greece
Descriptive
- Reporting and Scorecards
- Grouping Similarity Scores
Prescriptive
- Optimization and Simulation
- What, Why, When
Predictive
- Predicting the future from the past
Types of Analysis
Machine
Learning
Microsoft Learn Student Ambassadors | Greece
Machine Learning Algorithms
Which category?
How much/many?
Which Group?
Is it odd?
Which action?
Classification
Regression
Clustering
Anomaly
Reinforcement Learning
Microsoft Learn Student Ambassadors | Greece
Team
Data
Science
Process
https://bit.ly/2DkeHvL
Microsoft Learn Student Ambassadors | Greece
Collaboration and end-to-end efficiency
• Deploy training/scoring scripts in DB
• Make models accessible to any
applications
• Manage model version in DB
• Consume ML models from any apps
• Make simple stored proc calls
• Train models remotely on SQL Server
• Use R/Python code to embedded in T-SQL
stored procedure
• Explore and experiment with data
• Stay in your favorite IDE
• Use R, Python, T-SQL
Explore Train
Deploy
Share &
Consume
SQL Server
ML Services
App Developer
Data Scientist
Data Scientist
SQL Server DBA
Microsoft Learn Student Ambassadors | Greece
Evolution of SQL Server ML Services
Microsoft Learn Student Ambassadors | Greece
Machine Learning outside of database
Data
transformations
Model
training Model
Analytics Server
Scoring
Separate server or embedded logic
Application
Transactions
Data movement
Model
operationalization
New data
Predictions
Microsoft Learn Student Ambassadors | Greece
In-Database Machine Learning
Application
Data
transformations
Model
training
Scoring
Transactions
Microsoft Learn Student Ambassadors | Greece
How it works
Application
Server Box
Satellite
T-SQL
SQL Server
Launchpad Service
Direct
Communication
Performance
Microsoft Learn Student Ambassadors | Greece
• A database engine instance is required.
• Always On Availability Groups are supported for Machine Learning
Services.
• Always On Failover Cluster Instance (FCI) is supported with SQL Server
2019 and later.
• Don't install Machine Learning Services on a domain controller
• Side-by-side installation with other versions of Python and R is supported
but isn't recommended.
Pre-install checklist
Microsoft Learn Student Ambassadors | Greece
What we need to install?
Microsoft Learn Student Ambassadors | Greece
Set environment variables
Enable script execution
Restart the service
Post Installation actions
Microsoft Learn Student Ambassadors | Greece
Verify installation
R
Python
Microsoft Learn Student Ambassadors | Greece
• Create a login for SQLRUserGroup.
• Make sure that SQLRUserGroup has "Allow Log on locally" permissions.
• Firewall configuration for SQL Server Machine Learning Services.
• Ensure that SQL Server TCP network protocol is enabled.
• Ensure that SQL Server Remote Access is enabled.
• Manage disk quotas to avoid external scripts running tasks that exhaust
disk space
Additional configuration
Get Python package information
Get R package information
Microsoft Learn Student Ambassadors | Greece
Packages Version Description
revoscalepy 9.4.7
Used for remote compute contexts, streaming, parallel execution of rx
functions for data import and transformation, modeling, visualization,
and analysis.
microsoftml 9.4.7 Adds machine learning algorithms in Python.
Microsoft Python packages
Microsoft Learn Student Ambassadors | Greece
Packages Version Description
RevoScaleR 9.4.7
Used for remote compute contexts, streaming, parallel execution of rx
functions for data import and transformation, modeling, visualization, and
analysis.
sqlrutils 1.0.0 Used for including R script in stored procedures.
MicrosoftML 9.4.7 Adds machine learning algorithms in R.
olapR 1.0.0 Used for writing MDX statements in R.
Microsoft R packages
Microsoft Learn Student Ambassadors | Greece
Don't try to install Python packages directly in the SQL package library
using pip or similar methods.
Install Python / R packages with sqlmlutils
Python : https://bit.ly/3fn668o
R : https://bit.ly/2DE9IWb
Install new Python / R packages
For SQL Server 2019
Microsoft Learn Student Ambassadors | Greece
Code Execution
R / Python / Java
sp_execute_external_script
@language
@script
Microsoft Learn Student Ambassadors | Greece
Code Execution
Execute with Result Sets
EXECUTE sp_execute_external_script @language = N'Python'
, @script = N'OutputDataSet = InputDataSet;'
, @input_data_1 = N'SELECT * FROM T;'
WITH RESULT SETS(([ID] INT,[YOD] INT,[Name] nvarchar(200)));
GO
Microsoft Learn Student Ambassadors | Greece
• Generates a predicted value or scores
based on a stored model.
• Uses the native C++ extension
capabilities in SQL machine learning.
• Offers the fastest possible processing
speed of forecasting and prediction
workloads
• Support models in Open Neural
Network Exchange (ONNX) format or
models trained using the RevoScaleR
and revoscalepy packages.
PREDICT
T-SQL function
PREDICT
Code Execution
ML Samples
Microsoft Learn Student Ambassadors | Greece
Download them from GitHub https://bit.ly/2DyHLzc
In these reports, you can view details such as:
• Active Python or R sessions
• Configuration settings for the instance
• Execution statistics for machine learning jobs
• Extended events for R Services
• Python or R packages installed on the current instance
Monitor using SSMS Reports
Microsoft Learn Student Ambassadors | Greece
sys.dm_external_script_requests
Returns a row for each active worker account that is running an external script.
sys.dm_external_script_execution_stats
Returns one row for each type of external script request.
Monitor using DMVs
Microsoft Learn Student Ambassadors | Greece
Monitor using XE
event
SQLSatellite
predict%
https://bit.ly/33zlCf1
Monitor ML
Any
questions
Thank you!
@antoniosch - @sqlschool
./sqlschoolgr - ./groups/sqlschool
./c/SqlschoolGr
SQLschool.gr Group
Antonios Chatzipavlis
Data Solutions Consultant & Trainer
Machine Learning in SQL Server 2019

Contenu connexe

Tendances

Experience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformExperience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformBob Ward
 
The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019Amit Banerjee
 
SQL server 2016 New Features
SQL server 2016 New FeaturesSQL server 2016 New Features
SQL server 2016 New Featuresaminmesbahi
 
SQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data ClusterSQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data ClusterMaximiliano Accotto
 
How SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the GameHow SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the GamePARIKSHIT SAVJANI
 
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars PlatzdaschAzure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars PlatzdaschLars Platzdasch
 
Azure data bricks by Eugene Polonichko
Azure data bricks by Eugene PolonichkoAzure data bricks by Eugene Polonichko
Azure data bricks by Eugene PolonichkoAlex Tumanoff
 
Keep your environment always on with sql server 2016 sql bits 2017
Keep your environment always on with sql server 2016 sql bits 2017Keep your environment always on with sql server 2016 sql bits 2017
Keep your environment always on with sql server 2016 sql bits 2017Bob Ward
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Bob Ward
 
Using extended events for troubleshooting sql server
Using extended events for troubleshooting sql serverUsing extended events for troubleshooting sql server
Using extended events for troubleshooting sql serverAntonios Chatzipavlis
 
Sql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should knowSql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should knowBob Ward
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 noveltiesMSDEVMTL
 
What’s new in SQL Server 2017
What’s new in SQL Server 2017What’s new in SQL Server 2017
What’s new in SQL Server 2017James Serra
 
Microsoft ignite 2018 SQL Server 2019 big data clusters - intro session
Microsoft ignite 2018  SQL Server 2019 big data clusters - intro sessionMicrosoft ignite 2018  SQL Server 2019 big data clusters - intro session
Microsoft ignite 2018 SQL Server 2019 big data clusters - intro sessionTravis Wright
 
Senior database administrator
Senior database administratorSenior database administrator
Senior database administratorMustafa EL-Masry
 

Tendances (20)

Data virtualization using polybase
Data virtualization using polybaseData virtualization using polybase
Data virtualization using polybase
 
Experience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformExperience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data Platform
 
The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019
 
Exploring sql server 2016 bi
Exploring sql server 2016 biExploring sql server 2016 bi
Exploring sql server 2016 bi
 
SQL server 2016 New Features
SQL server 2016 New FeaturesSQL server 2016 New Features
SQL server 2016 New Features
 
SQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data ClusterSQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data Cluster
 
Exploring sql server 2016
Exploring sql server 2016Exploring sql server 2016
Exploring sql server 2016
 
How SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the GameHow SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the Game
 
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars PlatzdaschAzure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
 
SQL server Backup Restore Revealed
SQL server Backup Restore RevealedSQL server Backup Restore Revealed
SQL server Backup Restore Revealed
 
Azure data bricks by Eugene Polonichko
Azure data bricks by Eugene PolonichkoAzure data bricks by Eugene Polonichko
Azure data bricks by Eugene Polonichko
 
Keep your environment always on with sql server 2016 sql bits 2017
Keep your environment always on with sql server 2016 sql bits 2017Keep your environment always on with sql server 2016 sql bits 2017
Keep your environment always on with sql server 2016 sql bits 2017
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
 
Using extended events for troubleshooting sql server
Using extended events for troubleshooting sql serverUsing extended events for troubleshooting sql server
Using extended events for troubleshooting sql server
 
Sql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should knowSql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should know
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
 
What’s new in SQL Server 2017
What’s new in SQL Server 2017What’s new in SQL Server 2017
What’s new in SQL Server 2017
 
Microsoft ignite 2018 SQL Server 2019 big data clusters - intro session
Microsoft ignite 2018  SQL Server 2019 big data clusters - intro sessionMicrosoft ignite 2018  SQL Server 2019 big data clusters - intro session
Microsoft ignite 2018 SQL Server 2019 big data clusters - intro session
 
Senior database administrator
Senior database administratorSenior database administrator
Senior database administrator
 
Spark
SparkSpark
Spark
 

Similaire à Machine Learning in SQL Server 2019

Intake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDIntake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDRaNa HaSan
 
Intake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDIntake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDRaNa HaSan
 
Intake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDIntake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDMohamed Bayomi
 
JONATHAN RYAN V - DETAILED
JONATHAN RYAN V - DETAILEDJONATHAN RYAN V - DETAILED
JONATHAN RYAN V - DETAILEDJonathan Ramos
 
Google Cloud DevOps Engineer Professional Training Course - PPT.pdf
Google Cloud DevOps Engineer Professional Training Course - PPT.pdfGoogle Cloud DevOps Engineer Professional Training Course - PPT.pdf
Google Cloud DevOps Engineer Professional Training Course - PPT.pdfMultisoft Virtual Acedamy
 
Google Cloud DevOps Engineer Professional Training Course.pdf
Google Cloud DevOps Engineer Professional Training Course.pdfGoogle Cloud DevOps Engineer Professional Training Course.pdf
Google Cloud DevOps Engineer Professional Training Course.pdfMultisoft Virtual Acedamy
 
Wasib Resume(Information Security)
Wasib Resume(Information Security)Wasib Resume(Information Security)
Wasib Resume(Information Security)Wasib Ahmed
 
Master Microsoft MCSD Web Applications
Master Microsoft MCSD Web ApplicationsMaster Microsoft MCSD Web Applications
Master Microsoft MCSD Web ApplicationsCas Trainining
 
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...All Things Open
 
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)dtz001
 

Similaire à Machine Learning in SQL Server 2019 (20)

Sr Full Stack Developer
Sr Full Stack DeveloperSr Full Stack Developer
Sr Full Stack Developer
 
Intake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDIntake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SD
 
Intake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDIntake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SD
 
Intake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SDIntake_35_Professional_Developer_Track_SD
Intake_35_Professional_Developer_Track_SD
 
Kirtika_Resume
Kirtika_ResumeKirtika_Resume
Kirtika_Resume
 
Resume
ResumeResume
Resume
 
Resume
ResumeResume
Resume
 
JONATHAN RYAN V - DETAILED
JONATHAN RYAN V - DETAILEDJONATHAN RYAN V - DETAILED
JONATHAN RYAN V - DETAILED
 
Profile-Amal
Profile-AmalProfile-Amal
Profile-Amal
 
Google Cloud DevOps Engineer Professional Training Course - PPT.pdf
Google Cloud DevOps Engineer Professional Training Course - PPT.pdfGoogle Cloud DevOps Engineer Professional Training Course - PPT.pdf
Google Cloud DevOps Engineer Professional Training Course - PPT.pdf
 
Google Cloud DevOps Engineer Professional Training Course.pdf
Google Cloud DevOps Engineer Professional Training Course.pdfGoogle Cloud DevOps Engineer Professional Training Course.pdf
Google Cloud DevOps Engineer Professional Training Course.pdf
 
Venu gopal_CV
Venu gopal_CVVenu gopal_CV
Venu gopal_CV
 
Wasib Resume(Information Security)
Wasib Resume(Information Security)Wasib Resume(Information Security)
Wasib Resume(Information Security)
 
Master Microsoft MCSD Web Applications
Master Microsoft MCSD Web ApplicationsMaster Microsoft MCSD Web Applications
Master Microsoft MCSD Web Applications
 
Resume_Susmita
Resume_SusmitaResume_Susmita
Resume_Susmita
 
Aditya java nov_2015
Aditya java nov_2015Aditya java nov_2015
Aditya java nov_2015
 
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)
 
New CV
New CVNew CV
New CV
 
Aman kaur gandhi
Aman kaur gandhiAman kaur gandhi
Aman kaur gandhi
 

Plus de Antonios Chatzipavlis

Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Antonios Chatzipavlis
 
Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Antonios Chatzipavlis
 
Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure Antonios Chatzipavlis
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Antonios Chatzipavlis
 
Introduction to Machine Learning on Azure
Introduction to Machine Learning on AzureIntroduction to Machine Learning on Azure
Introduction to Machine Learning on AzureAntonios Chatzipavlis
 
Introduction to sql database on azure
Introduction to sql database on azureIntroduction to sql database on azure
Introduction to sql database on azureAntonios Chatzipavlis
 
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting ServicesImplementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting ServicesAntonios Chatzipavlis
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Antonios Chatzipavlis
 

Plus de Antonios Chatzipavlis (20)

Migrate SQL Workloads to Azure
Migrate SQL Workloads to AzureMigrate SQL Workloads to Azure
Migrate SQL Workloads to Azure
 
Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Workload Management in SQL Server 2019
Workload Management in SQL Server 2019
 
Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)
 
Introduction to DAX Language
Introduction to DAX LanguageIntroduction to DAX Language
Introduction to DAX Language
 
Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
 
Sqlschool 2017 recap - 2018 plans
Sqlschool 2017 recap - 2018 plansSqlschool 2017 recap - 2018 plans
Sqlschool 2017 recap - 2018 plans
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
 
Microsoft SQL Family and GDPR
Microsoft SQL Family and GDPRMicrosoft SQL Family and GDPR
Microsoft SQL Family and GDPR
 
Statistics and Indexes Internals
Statistics and Indexes InternalsStatistics and Indexes Internals
Statistics and Indexes Internals
 
Introduction to Azure Data Lake
Introduction to Azure Data LakeIntroduction to Azure Data Lake
Introduction to Azure Data Lake
 
Azure SQL Data Warehouse
Azure SQL Data Warehouse Azure SQL Data Warehouse
Azure SQL Data Warehouse
 
Introduction to azure document db
Introduction to azure document dbIntroduction to azure document db
Introduction to azure document db
 
Introduction to Machine Learning on Azure
Introduction to Machine Learning on AzureIntroduction to Machine Learning on Azure
Introduction to Machine Learning on Azure
 
Introduction to sql database on azure
Introduction to sql database on azureIntroduction to sql database on azure
Introduction to sql database on azure
 
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting ServicesImplementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016
 

Dernier

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Dernier (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Machine Learning in SQL Server 2019

  • 1. Summer in Greece Festival Microsoft Learn Student Ambassadors | GreeceMicrosoft Learn Student Ambassadors | Greece Machine Learning Services in SQL Server 2019
  • 2. 1988 2000 Founderv 6.0 60 +2010 Antonios Chatzipavlis Data Solutions Consultant & Trainer Connect / Explore / Learn
  • 3. V.102010 - 2020 A community for Greek professionals who use the Microsoft Data Platform Connect / Explore / Learn WebminarsArticles Videos News EventsResources @sqlschool@antoniosch Sqlschoolgr Page Sqlschool User Group Sqlschool.gr Group SQLschoolGR channel
  • 5. Microsoft Learn Student Ambassadors | Greece Data Analysis Scientific Process • Create, Read, Update, Delete • Programming Control • Reporting • Business Intelligence • Statistics and Data Mining • Story Telling • Define the Question • Create Hypothesis • Create a Repeatable Test • Publish Results Data Science
  • 6. Microsoft Learn Student Ambassadors | Greece Descriptive - Reporting and Scorecards - Grouping Similarity Scores Prescriptive - Optimization and Simulation - What, Why, When Predictive - Predicting the future from the past Types of Analysis Machine Learning
  • 7. Microsoft Learn Student Ambassadors | Greece Machine Learning Algorithms Which category? How much/many? Which Group? Is it odd? Which action? Classification Regression Clustering Anomaly Reinforcement Learning
  • 8. Microsoft Learn Student Ambassadors | Greece Team Data Science Process https://bit.ly/2DkeHvL
  • 9. Microsoft Learn Student Ambassadors | Greece Collaboration and end-to-end efficiency • Deploy training/scoring scripts in DB • Make models accessible to any applications • Manage model version in DB • Consume ML models from any apps • Make simple stored proc calls • Train models remotely on SQL Server • Use R/Python code to embedded in T-SQL stored procedure • Explore and experiment with data • Stay in your favorite IDE • Use R, Python, T-SQL Explore Train Deploy Share & Consume SQL Server ML Services App Developer Data Scientist Data Scientist SQL Server DBA
  • 10. Microsoft Learn Student Ambassadors | Greece Evolution of SQL Server ML Services
  • 11. Microsoft Learn Student Ambassadors | Greece Machine Learning outside of database Data transformations Model training Model Analytics Server Scoring Separate server or embedded logic Application Transactions Data movement Model operationalization New data Predictions
  • 12. Microsoft Learn Student Ambassadors | Greece In-Database Machine Learning Application Data transformations Model training Scoring Transactions
  • 13. Microsoft Learn Student Ambassadors | Greece How it works Application Server Box Satellite T-SQL SQL Server Launchpad Service Direct Communication Performance
  • 14. Microsoft Learn Student Ambassadors | Greece • A database engine instance is required. • Always On Availability Groups are supported for Machine Learning Services. • Always On Failover Cluster Instance (FCI) is supported with SQL Server 2019 and later. • Don't install Machine Learning Services on a domain controller • Side-by-side installation with other versions of Python and R is supported but isn't recommended. Pre-install checklist
  • 15. Microsoft Learn Student Ambassadors | Greece What we need to install?
  • 16. Microsoft Learn Student Ambassadors | Greece Set environment variables Enable script execution Restart the service Post Installation actions
  • 17. Microsoft Learn Student Ambassadors | Greece Verify installation R Python
  • 18. Microsoft Learn Student Ambassadors | Greece • Create a login for SQLRUserGroup. • Make sure that SQLRUserGroup has "Allow Log on locally" permissions. • Firewall configuration for SQL Server Machine Learning Services. • Ensure that SQL Server TCP network protocol is enabled. • Ensure that SQL Server Remote Access is enabled. • Manage disk quotas to avoid external scripts running tasks that exhaust disk space Additional configuration
  • 19. Get Python package information
  • 20. Get R package information
  • 21. Microsoft Learn Student Ambassadors | Greece Packages Version Description revoscalepy 9.4.7 Used for remote compute contexts, streaming, parallel execution of rx functions for data import and transformation, modeling, visualization, and analysis. microsoftml 9.4.7 Adds machine learning algorithms in Python. Microsoft Python packages
  • 22. Microsoft Learn Student Ambassadors | Greece Packages Version Description RevoScaleR 9.4.7 Used for remote compute contexts, streaming, parallel execution of rx functions for data import and transformation, modeling, visualization, and analysis. sqlrutils 1.0.0 Used for including R script in stored procedures. MicrosoftML 9.4.7 Adds machine learning algorithms in R. olapR 1.0.0 Used for writing MDX statements in R. Microsoft R packages
  • 23. Microsoft Learn Student Ambassadors | Greece Don't try to install Python packages directly in the SQL package library using pip or similar methods. Install Python / R packages with sqlmlutils Python : https://bit.ly/3fn668o R : https://bit.ly/2DE9IWb Install new Python / R packages For SQL Server 2019
  • 24. Microsoft Learn Student Ambassadors | Greece Code Execution R / Python / Java sp_execute_external_script @language @script
  • 25. Microsoft Learn Student Ambassadors | Greece Code Execution Execute with Result Sets EXECUTE sp_execute_external_script @language = N'Python' , @script = N'OutputDataSet = InputDataSet;' , @input_data_1 = N'SELECT * FROM T;' WITH RESULT SETS(([ID] INT,[YOD] INT,[Name] nvarchar(200))); GO
  • 26. Microsoft Learn Student Ambassadors | Greece • Generates a predicted value or scores based on a stored model. • Uses the native C++ extension capabilities in SQL machine learning. • Offers the fastest possible processing speed of forecasting and prediction workloads • Support models in Open Neural Network Exchange (ONNX) format or models trained using the RevoScaleR and revoscalepy packages. PREDICT T-SQL function PREDICT
  • 29. Microsoft Learn Student Ambassadors | Greece Download them from GitHub https://bit.ly/2DyHLzc In these reports, you can view details such as: • Active Python or R sessions • Configuration settings for the instance • Execution statistics for machine learning jobs • Extended events for R Services • Python or R packages installed on the current instance Monitor using SSMS Reports
  • 30. Microsoft Learn Student Ambassadors | Greece sys.dm_external_script_requests Returns a row for each active worker account that is running an external script. sys.dm_external_script_execution_stats Returns one row for each type of external script request. Monitor using DMVs
  • 31. Microsoft Learn Student Ambassadors | Greece Monitor using XE event SQLSatellite predict% https://bit.ly/33zlCf1
  • 34. Thank you! @antoniosch - @sqlschool ./sqlschoolgr - ./groups/sqlschool ./c/SqlschoolGr SQLschool.gr Group Antonios Chatzipavlis Data Solutions Consultant & Trainer