SlideShare uma empresa Scribd logo
1 de 71
Baixar para ler offline
Azure Machine
Learning
1
Hello!
Il cielo è Azure sopra Berlino team
2
Università degli Studi di Roma “La Sapienza”
MoS in Engineering in Computer Science
Data Mining course
A.Y. 2016/2017
Fabio Rosato - rosato.1565173@studenti.uniroma1.it
Giacomo Lanciano - lanciano.1487019@studenti.uniroma1.it
Francisco Ferreres Garcia - matakukos@gmail.com
Leonardo Martini - martini.1722989@studenti.uniroma1.it
Simone Caldaro - caldaro.1324152@studenti.uniroma1.it
Na Zhu - nana.zhu@hotmail.com
1.
Machine Learning
A brief overview of what (the hell)
ML means
3
Machine Learning
◎ What is Big Data?
◎ What is Machine Learning?
◎ Uses of Machine Learning?
◎ Why Machine Learning?
◎ Who uses it?
4
What is big data?
◎ What is Big Data?
○ Structured
○ Unstructured
◎ From a variety of sources
○ Commercial transactions
○ Social media
○ Publicly available sources
○ Sensors
○ Business statistics
◎ How to analyze this data?
5
What is machine learning?
◎ Examine LARGE amounts of data
○ Find patterns. Build models.
◎ Automatic improvement of the algorithms
○ Iterative approach.
○ Multiple passes so the machine learns.
◎ Predictions
6
Uses of machine learning?
◎ Classification
○ Supervised.
○ e.g. spam filter
◎ Regression
○ Supervised.
○ Estimate relationship between
continuous variables.
○ e.g. car market price from specs
◎ Clustering
○ Unsupervised.
○ e.g. identify communities in social networks
7
Why machine learning?
◎ Growing volumes and varieties of available data
○ Processing this data manually would be impossible.
◎ Cheaper computational processing and storage
◎ Competitive advantage
○ Companies get huge benefits by analyzing
data from the markets.
8
Who uses it?
◎ Financial institutions
○ e.g. recognize and prevent frauds.
◎ Governments
○ e.g. increase efficiency and service.
◎ Medicine and science
○ e.g. dna sequencing, patients
wearable sensors.
◎ Marketing and sales
○ e.g. dna sequencing, patients
wearable sensors.
◎ You name it!
9
2.
Using ML
A brief overview of the current tools
to harness the power of ML
10
ML is an incredibly powerful set of...
◎ Algorithms
◎ Tools
◎ Techniques
◎ ...
◎ Magic spells?!
11
Back in the ol’ days...
To use ML, you’d have to implement the
algorithms yourself:
◎ prototype in some kind of friendlier
language (like Matlab/Octave);
◎ then implement it in a real language (like
C++) for speed and efficiency.
12
Back in the ol’ days...
In-depth knowledge of ML techniques and
algorithms was required.
Huge barrier to adoption.
ML was used only in very big, very serious
applications (that could afford and justify the
overhead).
13
“
Keep it simple,
so you’ll keep doing it.
14
Tools to
the rescue!
Libraries and
frameworks lower the
initial effort required to
get a working
prototype.
15
ML libraries and frameworks
◎ Exist for practically any widely used
programming language.
◎ Encapsulate most widely used algorithms,
abstracting away low-level details.
◎ Can even offer ad-hoc solutions for greater
speed/efficiency/reliability (e.g. distributed
computation).
16
◎
◎
◎
◎
◎
ML libraries and frameworks
The celebrities:
17
MLaaS
Cloud Computing
approach gives us
Machine Learning as a
Service.
18
ML as a Service
Outsourcing ML services:
◎ Incredibly low barrier to adoption.
◎ Massive scalability.
◎ It just works!
19
ML as a Service - The celebrities:
◎ Google Prediction APIs
◎ Amazon AWS ML
◎ Microsoft Azure ML
○ Allows users to create and train models,
then turn them into ready-to-be-consumed APIs.
All through a beautifully intuitive web interface.
20
3.
Azure Machine
Learning Studio
Azure’s solution to make your own
experiments
21
What is Azure Machine Learning Studio?
◎ Web-based workspace.
◎ Drag-and-drop tool.
◎ Collaborative environment.
◎ Where data science, cloud resources, and
your data meet.
With Azure ML, predictive analytics solutions
are...
22
“
Easy to build.
Easy to deploy.
Easy to share.
23
Ease of use!
ML can do amazing
things… But they could
be even more amazing
if accessible to all!
24
Setup
All you need is a web browser! Go to Azure ML
website and choose:
◎ Free workspace: start using all the features of
Studio immediately, no credit card required!
◎ Enterprise workspace: add extra storage and few
additional web services features ($10/month).
Then, start working on your data from anywhere!
25
Build
Creating a predictive model with Azure ML is
as easy as ...
… playing with LEGO®!
26
Build - main features
To help you building your training experiment
(model) from scratch, Studio provides:
◎ Interactive, intuitive visual workspace.
◎ Drag-and-drop interaction to connect modules
with each other. For instance:
○ ready-to-use datasets.
○ ready-to-use standard ML algorithms.
○ your special sauce (cooked in Python or R).
○ …
◎ Huge set of samples and templates.
27
Build - example
28
Build - advanced example
29
Build - additional features
Besides creating experiments, Studio allows you to:
◎ upload your own datasets.
◎ create web services. (!!!)
◎ store and reuse your trained models.
◎ create Jupyter notebooks.
◎ save your account settings.
◎ collect all previous objects into a single project.
30
Deploy
Once your model is ready, deploy it as a
web service in few steps:
◎ right from Studio, click on “Setup WS”.
◎ wait for your predictive experiment to be
created.
◎ click on “Deploy WS”.
◎ wait for your web service to be deployed.
◎ enjoy!
31
Deploy - predictive experiment
The original experiment is “translated” and
the model is used to predict results.
32
Deploy - web service
To call your new web service, just follow the
instructions about building the POST request.
33
Share
Your brand new experiment is ready to be
shared in the community. Remember,
ML accessible for all!
Upload it on Cortana Intelligence Gallery,
where data scientists and developers share
solutions.
34
Share - gallery
You can publish
your work directly
from the Studio.
Just follow the
instructions and
describe what you
have done!
35
https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-studio-overview-diagram
36
4.
Hands-on time!
A brief tutorial about creating and
deploying an experiment.
37
Microsoft Azure Machine Learning
Studio
◎ Go to Microsoft Azure Machine
Learning Studio.
◎ In order to use the framework
we need a Microsoft account:
A. I already have one of them
→ just “Sign in”
B. I do not have any of them →
must “Sign Up”
38
Sign up
Select “Free
Workspace”
◎ Free access
◎ 10GB Storage
◎ R and Python
scripts support
◎ Predictive web
services
39
Create an account
1. Fill the form
2. Click on create an
account
3. Verify your email
40
Sign in
◎ Type the account you want to use and log
in in the free workspace.
41
Five steps to create an experiment
◎ Create a model
○ Get data
○ Prepare the data
○ Define features
◎ Train the model
○ Choose and apply a learning algorithm
◎ Score and test the model
○ Predict new automobile prices
42
Automobile price prediction
Technical
Specifications
Market Price
43
Create a blank experiment
→
44
1. Get Data
◎ Use data in the existing sample datasets
◎ Create your own dataset by NEW dataset
◎ Import data: Load data from sources such
as the Web, Azure SQL database, Azure
table, Hive table, or Windows Azure BLOB
storage. Formerly known as Reader
45
Using Azure saved dataset
◎ In the search bar, look for automobile
◎ Drag and drop the dataset in the
dashboard
→
46
Visualize the Data
◎ Selecting one column, some statistics are shown
◎ Given the variables for a specific automobile, we're going to try to predict the price (last
column)
47
2. Prepare the data
◎ This menu can be used to
transform raw data to the
input of the next modules
48
Preprocess automobile dataset
1. Clean missing values present in
the columns of various rows so
the model can analyze the data
correctly.
2. Do not consider some columns.
→
49
Clean missing data: remove column
◎ Click on Launch column selector
◎ On the left, click With rules
◎ Under Begin With, click All columns.
◎ Select Exclude and column names,
◎ Click inside the text box and select normalized-losses
50
Clean missing data: remove row
→
→→
51
Run the experiment and visualize
processed data
◎ Save the experiment
◎ Run it
◎ Visualize data output from Clean
Missing Data
◎ Check differences
52
3. Define features
◎ Features: individual measurable properties
of something you’re interested in.
◎ Finding a good set of features for creating a
predictive model requires experimentation
and knowledge about the problem you
want to solve.
◎ (In our example each row represents one
automobile, and each column is a feature
of that automobile)
53
Feature selection
◎ As before, drag Select columns in Dataset
◎ Connect Clean Missing Data to the module
just added
◎ Click on Launch column selector
◎ On the left, click With rules
◎ Under Begin With, click No columns.
◎ Select Include and column names,
◎ Click inside the text box and select “make”,
“body-style”, “wheel-base”, “engine-size”,
“horsepower”, “peak-rpm”, “highway-mpg”,
“price”
54
4. Choose and apply a learning
algorithm
◎ Classification: predicts an
answer from a defined set of
categories
◎ Regression: predicts a
number.
◎ (Because we want to predict
price, which is a number,
we'll use a regression
algorithm)
Build
predictive
model
TrainTest
55
Split data into train set and test set
→ →→
56
Learning algorithm selection
+ =
◎ Connect the "Train Model" module to both the "Linear
Regression" and "Split Data" modules
57
Train a specific feature
◎ Click the Train Model
module
◎ Click Launch column
selector in the
Properties pane
◎ Click By Name
◎ Select the price
column.
◎ This is the value that
our model is going
to predict.
58
5. Predict new automobile prices
◎ 75 percent of our data used
to train the model using
◎ 25 percent of the data to
score the model functions.
59
Output of the score module
◎ Predicted values for price and its probability.
60
Results evaluation
(Final Experiment)
61
Metrics
◎ Mean Absolute Error (MAE): The average of absolute
errors (an error is the difference between the
predicted value and the actual value).
◎ Root Mean Squared Error (RMSE): The square root of
the average of squared errors of predictions made on
the test dataset.
◎ Relative Absolute Error: The average of absolute errors
relative to the absolute difference between actual
values and the average of all actual values.
◎ Relative Squared Error: The average of squared errors
relative to the squared difference between the actual
values and the average of all actual values.
◎ Coefficient of Determination: Also known as the R
squared value, this is a statistical metric indicating
how well a model fits the data.
62
How a metric should be
◎ For each of the error statistics, smaller is
better.
◎ A smaller value indicates that the
predictions more closely match the actual
values.
◎ For Coefficient of Determination, the closer
its value is to one (1.0), the better the
predictions.
63
Iterate to improve the model
◎ Change the features you use in your
prediction
◎ Modify the properties of the Linear
Regression algorithm
◎ Try a different algorithm altogether
◎ Add multiple machine learning algorithms to
your experiment at one time
◎ Compare two of them by using the Evaluate
Model module
64
6. Deploy an Azure Machine Learning
web service
◎ Satisfied with your model???
◎ You can deploy it as a web service!
◎ Use the WebService to predict automobile
prices by using new data…
Create a training
experiment
Convert the training
experiment to a
predictive experiment
Deploy the predictive
experiment as a New
web service
65
Convert the training experiment to a
predictive experiment
◎ By converting to a predictive experiment, you're getting
your trained model ready to be deployed as a scoring
web service.
◎ Users of the web service can send input data to your
model and your model will send back the prediction
results.
◎ As you convert to a predictive experiment, keep in mind
how you expect your model to be used by others.
66
Predictive experiment
67
Deploy the predictive experiment as a
New web service
◎ Click Run
◎ Click Deploy Web Service
◎ Select Deploy Web
Service New.
◎ The deployment page of
the Machine Learning
Web Service portal
opens.
68
Test your Web Service with a Python
Program
◎ request/response page
contains Request
Response API
Documentation, with a
starter Python program
(that must be modified)
to call the web service
69
Available material
https://github.com/giacomolanciano/Azure-Machine-Learning-tutorial
70
http://www.slideshare.net/GiacomoLanciano/azure-machine-learning-tutorial
Thanks!
Any questions?
71

Mais conteúdo relacionado

Mais procurados

Automated Machine Learning
Automated Machine LearningAutomated Machine Learning
Automated Machine LearningYuriy Guts
 
[Machine Learning 15minutes! #61] Azure OpenAI Service
[Machine Learning 15minutes! #61] Azure OpenAI Service[Machine Learning 15minutes! #61] Azure OpenAI Service
[Machine Learning 15minutes! #61] Azure OpenAI ServiceNaoki (Neo) SATO
 
Databricks Overview for MLOps
Databricks Overview for MLOpsDatabricks Overview for MLOps
Databricks Overview for MLOpsDatabricks
 
MLOps and Reproducible ML on AWS with Kubeflow and SageMaker
MLOps and Reproducible ML on AWS with Kubeflow and SageMakerMLOps and Reproducible ML on AWS with Kubeflow and SageMaker
MLOps and Reproducible ML on AWS with Kubeflow and SageMakerProvectus
 
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬VINCI Digital - Industrial IoT (IIoT) Strategic Advisory
 
Machine Learning and AI
Machine Learning and AIMachine Learning and AI
Machine Learning and AIJames Serra
 
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
AI and ML Series - Introduction to Generative AI and LLMs - Session 1AI and ML Series - Introduction to Generative AI and LLMs - Session 1
AI and ML Series - Introduction to Generative AI and LLMs - Session 1DianaGray10
 
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...Naoki (Neo) SATO
 
Vertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
Vertex AI - Unified ML Platform for the entire AI workflow on Google CloudVertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
Vertex AI - Unified ML Platform for the entire AI workflow on Google CloudMárton Kodok
 
Exploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdfExploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdfDung Hoang
 
Google Vertex AI
Google Vertex AIGoogle Vertex AI
Google Vertex AIVikasBisoi
 
Using the power of Generative AI at scale
Using the power of Generative AI at scaleUsing the power of Generative AI at scale
Using the power of Generative AI at scaleMaxim Salnikov
 
Mother of Language`s Langchain
Mother of Language`s LangchainMother of Language`s Langchain
Mother of Language`s LangchainJun-hang Lee
 
Getting Started with Azure AutoML
Getting Started with Azure AutoMLGetting Started with Azure AutoML
Getting Started with Azure AutoMLVivek Raja P S
 
Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)
Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)
Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)Naoki (Neo) SATO
 
Best Practice on using Azure OpenAI Service
Best Practice on using Azure OpenAI ServiceBest Practice on using Azure OpenAI Service
Best Practice on using Azure OpenAI ServiceKumton Suttiraksiri
 
Using MLOps to Bring ML to Production/The Promise of MLOps
Using MLOps to Bring ML to Production/The Promise of MLOpsUsing MLOps to Bring ML to Production/The Promise of MLOps
Using MLOps to Bring ML to Production/The Promise of MLOpsWeaveworks
 

Mais procurados (20)

Automated Machine Learning
Automated Machine LearningAutomated Machine Learning
Automated Machine Learning
 
[Machine Learning 15minutes! #61] Azure OpenAI Service
[Machine Learning 15minutes! #61] Azure OpenAI Service[Machine Learning 15minutes! #61] Azure OpenAI Service
[Machine Learning 15minutes! #61] Azure OpenAI Service
 
Databricks Overview for MLOps
Databricks Overview for MLOpsDatabricks Overview for MLOps
Databricks Overview for MLOps
 
MLOps and Reproducible ML on AWS with Kubeflow and SageMaker
MLOps and Reproducible ML on AWS with Kubeflow and SageMakerMLOps and Reproducible ML on AWS with Kubeflow and SageMaker
MLOps and Reproducible ML on AWS with Kubeflow and SageMaker
 
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
 
Machine Learning Operations & Azure
Machine Learning Operations & AzureMachine Learning Operations & Azure
Machine Learning Operations & Azure
 
Machine Learning and AI
Machine Learning and AIMachine Learning and AI
Machine Learning and AI
 
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
AI and ML Series - Introduction to Generative AI and LLMs - Session 1AI and ML Series - Introduction to Generative AI and LLMs - Session 1
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
 
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Journey of Generative AI
Journey of Generative AIJourney of Generative AI
Journey of Generative AI
 
Vertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
Vertex AI - Unified ML Platform for the entire AI workflow on Google CloudVertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
Vertex AI - Unified ML Platform for the entire AI workflow on Google Cloud
 
Exploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdfExploring Opportunities in the Generative AI Value Chain.pdf
Exploring Opportunities in the Generative AI Value Chain.pdf
 
Google Vertex AI
Google Vertex AIGoogle Vertex AI
Google Vertex AI
 
Using the power of Generative AI at scale
Using the power of Generative AI at scaleUsing the power of Generative AI at scale
Using the power of Generative AI at scale
 
Mother of Language`s Langchain
Mother of Language`s LangchainMother of Language`s Langchain
Mother of Language`s Langchain
 
Getting Started with Azure AutoML
Getting Started with Azure AutoMLGetting Started with Azure AutoML
Getting Started with Azure AutoML
 
Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)
Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)
Microsoft + OpenAI: Recent Updates (Machine Learning 15minutes! Broadcast #74)
 
Best Practice on using Azure OpenAI Service
Best Practice on using Azure OpenAI ServiceBest Practice on using Azure OpenAI Service
Best Practice on using Azure OpenAI Service
 
Using MLOps to Bring ML to Production/The Promise of MLOps
Using MLOps to Bring ML to Production/The Promise of MLOpsUsing MLOps to Bring ML to Production/The Promise of MLOps
Using MLOps to Bring ML to Production/The Promise of MLOps
 

Semelhante a Azure Machine Learning tutorial

Machine Learning Infrastructure
Machine Learning InfrastructureMachine Learning Infrastructure
Machine Learning InfrastructureSigOpt
 
Model driven engineering for big data management systems
Model driven engineering for big data management systemsModel driven engineering for big data management systems
Model driven engineering for big data management systemsMarcos Almeida
 
When We Spark and When We Don’t: Developing Data and ML Pipelines
When We Spark and When We Don’t: Developing Data and ML PipelinesWhen We Spark and When We Don’t: Developing Data and ML Pipelines
When We Spark and When We Don’t: Developing Data and ML PipelinesStitch Fix Algorithms
 
Serverless Toronto User Group - Let's go Serverless!
Serverless Toronto User Group - Let's go Serverless!Serverless Toronto User Group - Let's go Serverless!
Serverless Toronto User Group - Let's go Serverless!Daniel Zivkovic
 
How to Build a ML Platform Efficiently Using Open-Source
How to Build a ML Platform Efficiently Using Open-SourceHow to Build a ML Platform Efficiently Using Open-Source
How to Build a ML Platform Efficiently Using Open-SourceDatabricks
 
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15MLconf
 
10 more lessons learned from building Machine Learning systems - MLConf
10 more lessons learned from building Machine Learning systems - MLConf10 more lessons learned from building Machine Learning systems - MLConf
10 more lessons learned from building Machine Learning systems - MLConfXavier Amatriain
 
10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systems10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systemsXavier Amatriain
 
AI with Azure Machine Learning
AI with Azure Machine LearningAI with Azure Machine Learning
AI with Azure Machine LearningGeert Baeke
 
Lessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixLessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixJustin Basilico
 
Building a performing Machine Learning model from A to Z
Building a performing Machine Learning model from A to ZBuilding a performing Machine Learning model from A to Z
Building a performing Machine Learning model from A to ZCharles Vestur
 
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...Aaron Saray
 
Data Mesh at CMC Markets: Past, Present and Future
Data Mesh at CMC Markets: Past, Present and FutureData Mesh at CMC Markets: Past, Present and Future
Data Mesh at CMC Markets: Past, Present and FutureLorenzo Nicora
 
Weekly #105: AutoViz and Auto_ViML Visualization and Machine Learning
Weekly #105: AutoViz and Auto_ViML Visualization and Machine LearningWeekly #105: AutoViz and Auto_ViML Visualization and Machine Learning
Weekly #105: AutoViz and Auto_ViML Visualization and Machine LearningBill Liu
 
Cloudsim_openstack_aws_lastunit_bsccs_cloud computing
Cloudsim_openstack_aws_lastunit_bsccs_cloud computingCloudsim_openstack_aws_lastunit_bsccs_cloud computing
Cloudsim_openstack_aws_lastunit_bsccs_cloud computingMrSameerSTathare
 
Recommendations for Building Machine Learning Software
Recommendations for Building Machine Learning SoftwareRecommendations for Building Machine Learning Software
Recommendations for Building Machine Learning SoftwareJustin Basilico
 
DutchMLSchool. ML for Energy Trading and Automotive Sector
DutchMLSchool. ML for Energy Trading and Automotive SectorDutchMLSchool. ML for Energy Trading and Automotive Sector
DutchMLSchool. ML for Energy Trading and Automotive SectorBigML, Inc
 
Production-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to heroProduction-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to heroDaniel Marcous
 
Multi datastores - CLOSER'14
Multi datastores - CLOSER'14Multi datastores - CLOSER'14
Multi datastores - CLOSER'14Marcos Almeida
 

Semelhante a Azure Machine Learning tutorial (20)

Machine Learning Infrastructure
Machine Learning InfrastructureMachine Learning Infrastructure
Machine Learning Infrastructure
 
Model driven engineering for big data management systems
Model driven engineering for big data management systemsModel driven engineering for big data management systems
Model driven engineering for big data management systems
 
Industry Foundation Classes
Industry Foundation ClassesIndustry Foundation Classes
Industry Foundation Classes
 
When We Spark and When We Don’t: Developing Data and ML Pipelines
When We Spark and When We Don’t: Developing Data and ML PipelinesWhen We Spark and When We Don’t: Developing Data and ML Pipelines
When We Spark and When We Don’t: Developing Data and ML Pipelines
 
Serverless Toronto User Group - Let's go Serverless!
Serverless Toronto User Group - Let's go Serverless!Serverless Toronto User Group - Let's go Serverless!
Serverless Toronto User Group - Let's go Serverless!
 
How to Build a ML Platform Efficiently Using Open-Source
How to Build a ML Platform Efficiently Using Open-SourceHow to Build a ML Platform Efficiently Using Open-Source
How to Build a ML Platform Efficiently Using Open-Source
 
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
 
10 more lessons learned from building Machine Learning systems - MLConf
10 more lessons learned from building Machine Learning systems - MLConf10 more lessons learned from building Machine Learning systems - MLConf
10 more lessons learned from building Machine Learning systems - MLConf
 
10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systems10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systems
 
AI with Azure Machine Learning
AI with Azure Machine LearningAI with Azure Machine Learning
AI with Azure Machine Learning
 
Lessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixLessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at Netflix
 
Building a performing Machine Learning model from A to Z
Building a performing Machine Learning model from A to ZBuilding a performing Machine Learning model from A to Z
Building a performing Machine Learning model from A to Z
 
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
 
Data Mesh at CMC Markets: Past, Present and Future
Data Mesh at CMC Markets: Past, Present and FutureData Mesh at CMC Markets: Past, Present and Future
Data Mesh at CMC Markets: Past, Present and Future
 
Weekly #105: AutoViz and Auto_ViML Visualization and Machine Learning
Weekly #105: AutoViz and Auto_ViML Visualization and Machine LearningWeekly #105: AutoViz and Auto_ViML Visualization and Machine Learning
Weekly #105: AutoViz and Auto_ViML Visualization and Machine Learning
 
Cloudsim_openstack_aws_lastunit_bsccs_cloud computing
Cloudsim_openstack_aws_lastunit_bsccs_cloud computingCloudsim_openstack_aws_lastunit_bsccs_cloud computing
Cloudsim_openstack_aws_lastunit_bsccs_cloud computing
 
Recommendations for Building Machine Learning Software
Recommendations for Building Machine Learning SoftwareRecommendations for Building Machine Learning Software
Recommendations for Building Machine Learning Software
 
DutchMLSchool. ML for Energy Trading and Automotive Sector
DutchMLSchool. ML for Energy Trading and Automotive SectorDutchMLSchool. ML for Energy Trading and Automotive Sector
DutchMLSchool. ML for Energy Trading and Automotive Sector
 
Production-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to heroProduction-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to hero
 
Multi datastores - CLOSER'14
Multi datastores - CLOSER'14Multi datastores - CLOSER'14
Multi datastores - CLOSER'14
 

Último

why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...Jack Cole
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfblazblazml
 
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelDecoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelBoston Institute of Analytics
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Seán Kennedy
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Boston Institute of Analytics
 
Cyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded dataCyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded dataTecnoIncentive
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksdeepakthakur548787
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxSimranPal17
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Seán Kennedy
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data VisualizationKianJazayeri1
 
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdfWorld Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdfsimulationsindia
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxHaritikaChhatwal1
 
IBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaIBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaManalVerma4
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Boston Institute of Analytics
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxThe Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxTasha Penwell
 

Último (20)

why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
 
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelDecoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
 
Cyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded dataCyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded data
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing works
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptx
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data Visualization
 
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdfWorld Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptx
 
IBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaIBEF report on the Insurance market in India
IBEF report on the Insurance market in India
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxThe Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
 

Azure Machine Learning tutorial

  • 2. Hello! Il cielo è Azure sopra Berlino team 2 Università degli Studi di Roma “La Sapienza” MoS in Engineering in Computer Science Data Mining course A.Y. 2016/2017 Fabio Rosato - rosato.1565173@studenti.uniroma1.it Giacomo Lanciano - lanciano.1487019@studenti.uniroma1.it Francisco Ferreres Garcia - matakukos@gmail.com Leonardo Martini - martini.1722989@studenti.uniroma1.it Simone Caldaro - caldaro.1324152@studenti.uniroma1.it Na Zhu - nana.zhu@hotmail.com
  • 3. 1. Machine Learning A brief overview of what (the hell) ML means 3
  • 4. Machine Learning ◎ What is Big Data? ◎ What is Machine Learning? ◎ Uses of Machine Learning? ◎ Why Machine Learning? ◎ Who uses it? 4
  • 5. What is big data? ◎ What is Big Data? ○ Structured ○ Unstructured ◎ From a variety of sources ○ Commercial transactions ○ Social media ○ Publicly available sources ○ Sensors ○ Business statistics ◎ How to analyze this data? 5
  • 6. What is machine learning? ◎ Examine LARGE amounts of data ○ Find patterns. Build models. ◎ Automatic improvement of the algorithms ○ Iterative approach. ○ Multiple passes so the machine learns. ◎ Predictions 6
  • 7. Uses of machine learning? ◎ Classification ○ Supervised. ○ e.g. spam filter ◎ Regression ○ Supervised. ○ Estimate relationship between continuous variables. ○ e.g. car market price from specs ◎ Clustering ○ Unsupervised. ○ e.g. identify communities in social networks 7
  • 8. Why machine learning? ◎ Growing volumes and varieties of available data ○ Processing this data manually would be impossible. ◎ Cheaper computational processing and storage ◎ Competitive advantage ○ Companies get huge benefits by analyzing data from the markets. 8
  • 9. Who uses it? ◎ Financial institutions ○ e.g. recognize and prevent frauds. ◎ Governments ○ e.g. increase efficiency and service. ◎ Medicine and science ○ e.g. dna sequencing, patients wearable sensors. ◎ Marketing and sales ○ e.g. dna sequencing, patients wearable sensors. ◎ You name it! 9
  • 10. 2. Using ML A brief overview of the current tools to harness the power of ML 10
  • 11. ML is an incredibly powerful set of... ◎ Algorithms ◎ Tools ◎ Techniques ◎ ... ◎ Magic spells?! 11
  • 12. Back in the ol’ days... To use ML, you’d have to implement the algorithms yourself: ◎ prototype in some kind of friendlier language (like Matlab/Octave); ◎ then implement it in a real language (like C++) for speed and efficiency. 12
  • 13. Back in the ol’ days... In-depth knowledge of ML techniques and algorithms was required. Huge barrier to adoption. ML was used only in very big, very serious applications (that could afford and justify the overhead). 13
  • 14. “ Keep it simple, so you’ll keep doing it. 14
  • 15. Tools to the rescue! Libraries and frameworks lower the initial effort required to get a working prototype. 15
  • 16. ML libraries and frameworks ◎ Exist for practically any widely used programming language. ◎ Encapsulate most widely used algorithms, abstracting away low-level details. ◎ Can even offer ad-hoc solutions for greater speed/efficiency/reliability (e.g. distributed computation). 16
  • 17. ◎ ◎ ◎ ◎ ◎ ML libraries and frameworks The celebrities: 17
  • 18. MLaaS Cloud Computing approach gives us Machine Learning as a Service. 18
  • 19. ML as a Service Outsourcing ML services: ◎ Incredibly low barrier to adoption. ◎ Massive scalability. ◎ It just works! 19
  • 20. ML as a Service - The celebrities: ◎ Google Prediction APIs ◎ Amazon AWS ML ◎ Microsoft Azure ML ○ Allows users to create and train models, then turn them into ready-to-be-consumed APIs. All through a beautifully intuitive web interface. 20
  • 21. 3. Azure Machine Learning Studio Azure’s solution to make your own experiments 21
  • 22. What is Azure Machine Learning Studio? ◎ Web-based workspace. ◎ Drag-and-drop tool. ◎ Collaborative environment. ◎ Where data science, cloud resources, and your data meet. With Azure ML, predictive analytics solutions are... 22
  • 23. “ Easy to build. Easy to deploy. Easy to share. 23
  • 24. Ease of use! ML can do amazing things… But they could be even more amazing if accessible to all! 24
  • 25. Setup All you need is a web browser! Go to Azure ML website and choose: ◎ Free workspace: start using all the features of Studio immediately, no credit card required! ◎ Enterprise workspace: add extra storage and few additional web services features ($10/month). Then, start working on your data from anywhere! 25
  • 26. Build Creating a predictive model with Azure ML is as easy as ... … playing with LEGO®! 26
  • 27. Build - main features To help you building your training experiment (model) from scratch, Studio provides: ◎ Interactive, intuitive visual workspace. ◎ Drag-and-drop interaction to connect modules with each other. For instance: ○ ready-to-use datasets. ○ ready-to-use standard ML algorithms. ○ your special sauce (cooked in Python or R). ○ … ◎ Huge set of samples and templates. 27
  • 29. Build - advanced example 29
  • 30. Build - additional features Besides creating experiments, Studio allows you to: ◎ upload your own datasets. ◎ create web services. (!!!) ◎ store and reuse your trained models. ◎ create Jupyter notebooks. ◎ save your account settings. ◎ collect all previous objects into a single project. 30
  • 31. Deploy Once your model is ready, deploy it as a web service in few steps: ◎ right from Studio, click on “Setup WS”. ◎ wait for your predictive experiment to be created. ◎ click on “Deploy WS”. ◎ wait for your web service to be deployed. ◎ enjoy! 31
  • 32. Deploy - predictive experiment The original experiment is “translated” and the model is used to predict results. 32
  • 33. Deploy - web service To call your new web service, just follow the instructions about building the POST request. 33
  • 34. Share Your brand new experiment is ready to be shared in the community. Remember, ML accessible for all! Upload it on Cortana Intelligence Gallery, where data scientists and developers share solutions. 34
  • 35. Share - gallery You can publish your work directly from the Studio. Just follow the instructions and describe what you have done! 35
  • 37. 4. Hands-on time! A brief tutorial about creating and deploying an experiment. 37
  • 38. Microsoft Azure Machine Learning Studio ◎ Go to Microsoft Azure Machine Learning Studio. ◎ In order to use the framework we need a Microsoft account: A. I already have one of them → just “Sign in” B. I do not have any of them → must “Sign Up” 38
  • 39. Sign up Select “Free Workspace” ◎ Free access ◎ 10GB Storage ◎ R and Python scripts support ◎ Predictive web services 39
  • 40. Create an account 1. Fill the form 2. Click on create an account 3. Verify your email 40
  • 41. Sign in ◎ Type the account you want to use and log in in the free workspace. 41
  • 42. Five steps to create an experiment ◎ Create a model ○ Get data ○ Prepare the data ○ Define features ◎ Train the model ○ Choose and apply a learning algorithm ◎ Score and test the model ○ Predict new automobile prices 42
  • 44. Create a blank experiment → 44
  • 45. 1. Get Data ◎ Use data in the existing sample datasets ◎ Create your own dataset by NEW dataset ◎ Import data: Load data from sources such as the Web, Azure SQL database, Azure table, Hive table, or Windows Azure BLOB storage. Formerly known as Reader 45
  • 46. Using Azure saved dataset ◎ In the search bar, look for automobile ◎ Drag and drop the dataset in the dashboard → 46
  • 47. Visualize the Data ◎ Selecting one column, some statistics are shown ◎ Given the variables for a specific automobile, we're going to try to predict the price (last column) 47
  • 48. 2. Prepare the data ◎ This menu can be used to transform raw data to the input of the next modules 48
  • 49. Preprocess automobile dataset 1. Clean missing values present in the columns of various rows so the model can analyze the data correctly. 2. Do not consider some columns. → 49
  • 50. Clean missing data: remove column ◎ Click on Launch column selector ◎ On the left, click With rules ◎ Under Begin With, click All columns. ◎ Select Exclude and column names, ◎ Click inside the text box and select normalized-losses 50
  • 51. Clean missing data: remove row → →→ 51
  • 52. Run the experiment and visualize processed data ◎ Save the experiment ◎ Run it ◎ Visualize data output from Clean Missing Data ◎ Check differences 52
  • 53. 3. Define features ◎ Features: individual measurable properties of something you’re interested in. ◎ Finding a good set of features for creating a predictive model requires experimentation and knowledge about the problem you want to solve. ◎ (In our example each row represents one automobile, and each column is a feature of that automobile) 53
  • 54. Feature selection ◎ As before, drag Select columns in Dataset ◎ Connect Clean Missing Data to the module just added ◎ Click on Launch column selector ◎ On the left, click With rules ◎ Under Begin With, click No columns. ◎ Select Include and column names, ◎ Click inside the text box and select “make”, “body-style”, “wheel-base”, “engine-size”, “horsepower”, “peak-rpm”, “highway-mpg”, “price” 54
  • 55. 4. Choose and apply a learning algorithm ◎ Classification: predicts an answer from a defined set of categories ◎ Regression: predicts a number. ◎ (Because we want to predict price, which is a number, we'll use a regression algorithm) Build predictive model TrainTest 55
  • 56. Split data into train set and test set → →→ 56
  • 57. Learning algorithm selection + = ◎ Connect the "Train Model" module to both the "Linear Regression" and "Split Data" modules 57
  • 58. Train a specific feature ◎ Click the Train Model module ◎ Click Launch column selector in the Properties pane ◎ Click By Name ◎ Select the price column. ◎ This is the value that our model is going to predict. 58
  • 59. 5. Predict new automobile prices ◎ 75 percent of our data used to train the model using ◎ 25 percent of the data to score the model functions. 59
  • 60. Output of the score module ◎ Predicted values for price and its probability. 60
  • 62. Metrics ◎ Mean Absolute Error (MAE): The average of absolute errors (an error is the difference between the predicted value and the actual value). ◎ Root Mean Squared Error (RMSE): The square root of the average of squared errors of predictions made on the test dataset. ◎ Relative Absolute Error: The average of absolute errors relative to the absolute difference between actual values and the average of all actual values. ◎ Relative Squared Error: The average of squared errors relative to the squared difference between the actual values and the average of all actual values. ◎ Coefficient of Determination: Also known as the R squared value, this is a statistical metric indicating how well a model fits the data. 62
  • 63. How a metric should be ◎ For each of the error statistics, smaller is better. ◎ A smaller value indicates that the predictions more closely match the actual values. ◎ For Coefficient of Determination, the closer its value is to one (1.0), the better the predictions. 63
  • 64. Iterate to improve the model ◎ Change the features you use in your prediction ◎ Modify the properties of the Linear Regression algorithm ◎ Try a different algorithm altogether ◎ Add multiple machine learning algorithms to your experiment at one time ◎ Compare two of them by using the Evaluate Model module 64
  • 65. 6. Deploy an Azure Machine Learning web service ◎ Satisfied with your model??? ◎ You can deploy it as a web service! ◎ Use the WebService to predict automobile prices by using new data… Create a training experiment Convert the training experiment to a predictive experiment Deploy the predictive experiment as a New web service 65
  • 66. Convert the training experiment to a predictive experiment ◎ By converting to a predictive experiment, you're getting your trained model ready to be deployed as a scoring web service. ◎ Users of the web service can send input data to your model and your model will send back the prediction results. ◎ As you convert to a predictive experiment, keep in mind how you expect your model to be used by others. 66
  • 68. Deploy the predictive experiment as a New web service ◎ Click Run ◎ Click Deploy Web Service ◎ Select Deploy Web Service New. ◎ The deployment page of the Machine Learning Web Service portal opens. 68
  • 69. Test your Web Service with a Python Program ◎ request/response page contains Request Response API Documentation, with a starter Python program (that must be modified) to call the web service 69