SlideShare ist ein Scribd-Unternehmen logo
1 von 57
Machine Learning 
on Azure 
Seth Juarez 
Analytics Program Manager 
DevExpress 
@sethjuarez
Questions? 
#azureconf 
on Twitter
Agenda 
1) data science 
2) prediction 
3) process 
4) models 
5) AzureML
data science 
• key word: “science” 
• try stuff 
• it (might not | won’t) work 
the first time 
question • this might work… 
research • wikipedia time 
hypothesis • I have an idea 
experiment • try it out 
analysis • did this even work? 
conclusion • time for a better idea
machine learning 
• finding (and exploiting) patterns in data 
• replacing “human writing code” with 
“human supplying data” 
• system figures out what the person wants 
based on examples 
• need to abstract from “training” examples 
to “test” examples 
• most central issue in ML: generalization
machine learning 
• split into two (ish) areas 
• supervised learning 
• predicting the future 
• learn from past examples to predict future 
• unsupervised learning 
• understanding the past 
• making sense of data 
• learning structure of data 
• compressing data for consumption
neat applications
neat applications
neat applications 
• spam catchers 
• ocr (optical character recognition) 
• natural language processing 
• machine translation 
• biology 
• medicine 
• robotics (autonomous systems) 
• etc… 
9
prediction 
making decisions
making decisions 
• what kinds of decisions are we making? 
• binary classification 
• yes/no, 1/0, male/female 
• multi-class classification 
• {A, B, C, D, F} (Grade), 
{1, 2, 3, 4} (Class), 
{teacher, student, secretary} 
• regression 
• number between 0 and 100, real value 
11
process 
data 
clean 
transform 
maths 
predict 
model
data 
Class Outlook Temp. Windy 
Play Sunny Low Yes 
No Play Sunny High Yes 
No Play Sunny High No 
Play Overcast Low Yes 
Play Overcast High No 
Play Overcast Low No 
No Play Rainy Low Yes 
Play Rainy Low No 
? Sunny Low No 
label (y) 
play / no play 
features 
outlook, temp, windy 
values (x) 
[Sunny, Low, Yes] 
Labeled dataset is a collection of (X, Y) pairs. 
Given a new x, how do we predict y?
clean / transform / maths 
Class Outlook Temp. Windy 
Play Sunny Lowest Yes 
No Play ? High Yes 
No Play Sunny High KindOf 
Play Overcast ? Yes 
Play Turtle Cloud High No 
Play Overcast ? No 
No Play Rainy Low 28% 
Play Rainy Low No 
? Sunny Low No 
need to clean up data 
need to convert to model-able form (linear algebra) 
yak shaving 
Any apparently useless activity 
which, by allowing you to 
overcome intermediate difficulties, 
allows you to solve a larger 
problem. 
I was doing a bit of yak shaving 
this morning, and it looks like it 
might have paid off. 
http://en.wiktionary.org/wiki/yak_shaving
clean / transform / maths 
Class Outlook Temp. Windy 
Play Sunny Low Yes 
No Play Sunny High Yes 
No Play Sunny High No 
Play Overcast Low Yes 
Play Overcast High No 
Play Overcast Low No 
No Play Rainy Low Yes 
Play Rainy Low No 
? Sunny Low No 
need to clean up data 
need to convert to model-able form (linear algebra)
model 
Class Outlook Temp. Windy 
Play Sunny Low Yes 
No Play Sunny High Yes 
No Play Sunny High No 
Play Overcast Low Yes 
Play Overcast High No 
Play Overcast Low No 
No Play Rainy Low Yes 
Play Rainy Low No 
? Sunny Low No
predict 
Class Outlook Temp. Windy 
? Sunny Low No 
PLAY!!!
models 
how do we build them?
linear classifiers 
• in order to classify things properly we need: 
• a way to mathematically represent examples 
• a way to separate classes (yes/no) 
• “decision boundary” 
• excel example 
• graph example 
19 
MODELS
linear classifiers 
• dot product of vectors 
• [ 3, 4 ] ● [ 1, 2 ] = (3 × 1) + (4 × 2) = 11 
• a ● b = | a | × | b | cos θ 
• When does this equal 0? 
• why would this be useful? 
• decision boundary can be represented using a single vector 
20 
MODELS
perceptron 
…and other linear models
linear classifiers 
• Frank Rosenblatt, Cornell 1957 
• let’s make a line (by using a single vector) 
• take the dot product between the line and the new point 
• > 0 belongs to class 1 
• < 0 belongs to class 2 
• == 0 flip a coin we don’t know 
• for each example, if we make a mistake, move the line 
22 
MODELS
perceptron 
point demo
perceptron
what if….
kernel methods 
models
kernel methods 
2푛 + 
푛 
2 
= 2n + 
푛 푛−1 
2 
features….
perceptron 
• minimize mistakes by moving w 
arg min 
(풘,풃) 
1 
2 
풘 2 
subject to: 
푦푖 풘 ∙ 풙풊 − 푏 ≥ 1 
REMINDER
perceptron 
• eventually this becomes an optimization problem 
퐿 훼 = 
푛 
푖=1 
훼푖 − 
1 
2 
푖,푗 
푇풙푗 
훼푖훼푗 푦푖푦푗풙푖 
subject to: 
훼푖 ≥ 0, 
푛 
푖=1 
훼푖푦푖 = 0 
REMINDER
perceptron 
• eventually this becomes an optimization problem 
퐿 훼 = 
푛 
푖=1 
훼푖 − 
1 
2 
푖,푗 
푇풙푗 
훼푖훼푗 푦푖푦푗풙푖 
subject to: 
훼푖 ≥ 0, 
푛 
푖=1 
훼푖푦푖 = 0 
REMINDER
perceptron 
• eventually this becomes an optimization problem 
퐿 훼 = 
푛 
푖=1 
훼푖 − 
1 
2 
푖,푗 
훼푖훼푗푦푖푦푗 푘 풙푖 , 풙푗 
subject to: 
훼푖 ≥ 0, 
푛 
푖=1 
훼푖푦푖 = 0 
REMINDER 
dot product
perceptron 
• Frank Rosenblatt, Cornell 1957 
• let’s make a line (by using a single vector) 
• take the dot product between the line and the new point 
• > 0 belongs to class 1 
• < 0 belongs to class 2 
• == 0 flip a coin we don’t know 
• for each example, if we make a mistake, move the line 
32 
REMINDER
kernel (one weird trick….) 
MODELS 
• store dot product in a table 
푇풙0 ⋯ 풙0 
풙0 
푇풙푗 
⋮ ⋱ ⋮ 
풙푇푖 
풙0 ⋯ 풙푖 
푇풙푗 
• call it the “kernel matrix” and “kernel trick” 
• project into any space and still learn a linear model
support vector machines 
MODELS 
• this method is the basis for SVM’s 
• returns a set of vectors (<< n) to make decision 
• essentially changed the space to make it separable
kernels 
• polynomial kernel 
퐾 풙, 풚 = 풙푇풚 + 푐 푑 
• RBF kernel 
퐾 풙, 풚 = exp − 
풙 − 풚 2 2 
2휎2 
MODELS 
1
36
what if….
neural networks 
models
neural networks
neural networks 
Play? 
ℎ1 
ℎ2 
ℎ3 
퐵1
LINEAR METHODS
decision trees 
models
decision trees 
Class Outlook Temp. Windy 
Play Sunny Low Yes 
No Play Sunny High Yes 
No Play Sunny High No 
Play Overcast Low Yes 
Play Overcast High No 
Play Overcast Low No 
No Play Rainy Low Yes 
Play Rainy Low No 
? Sunny Low No
decision trees 
• how should the computer split? 
• information gain (with entropy) 
• entropy measures how disorganized your 
answer is. 
• information gain says: 
• if I separate the answer by the values in a 
particular column, does the answer become 
*more* organized?
decision trees 
• calculating information gain: 
퐼퐺 푦, 푎 = 퐻 푦 − 퐻 푦 푎) 
푎 ∈ 퐴푡푡푟(푥) 
• 퐻 푦 – how messy is the answer 
• 퐻 푦 푎) – how messy is the answer if we 
know a?
decision trees 
demo
POPULAR MODELS
do they work? 
testing
how well is it doing? 
Train Test 
Use 80% Use 20%
AzureML 
putting it all together 
50
process reminder (same on Azure) 
data 
clean 
transform 
maths 
predict 
model
experiments 
putting it all together 
52
Truth 
true false 
Guess 
positive 
푡푟푢푒 푝표푠푖푡푖푣푒 푓푎푙푠푒 푝표푠푖푡푖푣푒 푝푟푒푐푖푠푖표푛 = 
푡푝 
푡푝 + 푓푝 
negative 
푓푎푙푠푒 푛푒푔푎푡푖푣푒 푡푟푢푒 푛푒푔푎푡푖푣푒 
푟푒푐푎푙푙 = 
푡푝 
푡푝 + 푓푛 
푎푐푐푢푟푎푐푦 = 
푡푝 + 푡푛 
푡푝 + 푡푛 + 푓푝 + 푓푛 
confusion matrix
AzureML WebServices 
putting it all together 
54
Get started with a free trial 
http://aka.ms/AzureConf2014 
Or, use your existing benefits… 
http://aka.ms/AzureConf-MemberOffers
THANK YOU!!! 
AND STAY TUNED FOR THE 
NEXT SESSIONS!!!!!
Seth Juarez 
Analytics Program Manager, DevExpress 
@sethjuarez 
sethj@devexpress.com

Weitere ähnliche Inhalte

Was ist angesagt?

Data Science and Machine Learning with Tensorflow
 Data Science and Machine Learning with Tensorflow Data Science and Machine Learning with Tensorflow
Data Science and Machine Learning with TensorflowShubham Sharma
 
Erik Bernhardsson, CTO, Better Mortgage
Erik Bernhardsson, CTO, Better MortgageErik Bernhardsson, CTO, Better Mortgage
Erik Bernhardsson, CTO, Better MortgageMLconf
 
DMTM 2015 - 11 Decision Trees
DMTM 2015 - 11 Decision TreesDMTM 2015 - 11 Decision Trees
DMTM 2015 - 11 Decision TreesPier Luca Lanzi
 
Machine learning interviews day2
Machine learning interviews   day2Machine learning interviews   day2
Machine learning interviews day2rajmohanc
 
Mathematics in everyday life
Mathematics in everyday lifeMathematics in everyday life
Mathematics in everyday lifePrathika Jp Jp
 
Machine learning basics
Machine learning basics Machine learning basics
Machine learning basics Akanksha Bali
 
Machine learning for_finance
Machine learning for_financeMachine learning for_finance
Machine learning for_financeStefan Duprey
 
Machine learning interviews day3
Machine learning interviews   day3Machine learning interviews   day3
Machine learning interviews day3rajmohanc
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningKevin McCarthy
 
Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017
Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017
Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017MLconf
 
Continuous control with deep reinforcement learning (DDPG)
Continuous control with deep reinforcement learning (DDPG)Continuous control with deep reinforcement learning (DDPG)
Continuous control with deep reinforcement learning (DDPG)Taehoon Kim
 

Was ist angesagt? (13)

Matrix Factorization
Matrix FactorizationMatrix Factorization
Matrix Factorization
 
Data Science and Machine Learning with Tensorflow
 Data Science and Machine Learning with Tensorflow Data Science and Machine Learning with Tensorflow
Data Science and Machine Learning with Tensorflow
 
Erik Bernhardsson, CTO, Better Mortgage
Erik Bernhardsson, CTO, Better MortgageErik Bernhardsson, CTO, Better Mortgage
Erik Bernhardsson, CTO, Better Mortgage
 
DMTM 2015 - 11 Decision Trees
DMTM 2015 - 11 Decision TreesDMTM 2015 - 11 Decision Trees
DMTM 2015 - 11 Decision Trees
 
Junit in action
Junit in actionJunit in action
Junit in action
 
Machine learning interviews day2
Machine learning interviews   day2Machine learning interviews   day2
Machine learning interviews day2
 
Mathematics in everyday life
Mathematics in everyday lifeMathematics in everyday life
Mathematics in everyday life
 
Machine learning basics
Machine learning basics Machine learning basics
Machine learning basics
 
Machine learning for_finance
Machine learning for_financeMachine learning for_finance
Machine learning for_finance
 
Machine learning interviews day3
Machine learning interviews   day3Machine learning interviews   day3
Machine learning interviews day3
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017
Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017
Aaron Roth, Associate Professor, University of Pennsylvania, at MLconf NYC 2017
 
Continuous control with deep reinforcement learning (DDPG)
Continuous control with deep reinforcement learning (DDPG)Continuous control with deep reinforcement learning (DDPG)
Continuous control with deep reinforcement learning (DDPG)
 

Ähnlich wie Machine Learning on Azure - AzureConf

DeepLearningLecture.pptx
DeepLearningLecture.pptxDeepLearningLecture.pptx
DeepLearningLecture.pptxssuserf07225
 
مدخل إلى تعلم الآلة
مدخل إلى تعلم الآلةمدخل إلى تعلم الآلة
مدخل إلى تعلم الآلةFares Al-Qunaieer
 
Deep learning from scratch
Deep learning from scratch Deep learning from scratch
Deep learning from scratch Eran Shlomo
 
Machine Learning, Deep Learning and Data Analysis Introduction
Machine Learning, Deep Learning and Data Analysis IntroductionMachine Learning, Deep Learning and Data Analysis Introduction
Machine Learning, Deep Learning and Data Analysis IntroductionTe-Yen Liu
 
Deep learning with TensorFlow
Deep learning with TensorFlowDeep learning with TensorFlow
Deep learning with TensorFlowBarbara Fusinska
 
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdfAmirMohamedNabilSale
 
Teaching Constraint Programming, Patrick Prosser
Teaching Constraint Programming,  Patrick ProsserTeaching Constraint Programming,  Patrick Prosser
Teaching Constraint Programming, Patrick ProsserPierre Schaus
 
Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Balázs Hidasi
 
Week 2 - ML models and Linear Regression.pptx
Week 2 - ML models and Linear Regression.pptxWeek 2 - ML models and Linear Regression.pptx
Week 2 - ML models and Linear Regression.pptxHafizAliHummad
 
Build tic tac toe with javascript (3:28)
Build tic tac toe with javascript (3:28)Build tic tac toe with javascript (3:28)
Build tic tac toe with javascript (3:28)Thinkful
 
Support Vector Machines Simply
Support Vector Machines SimplySupport Vector Machines Simply
Support Vector Machines SimplyEmad Nabil
 
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)Universitat Politècnica de Catalunya
 
[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You NeedDaiki Tanaka
 

Ähnlich wie Machine Learning on Azure - AzureConf (20)

DeepLearningLecture.pptx
DeepLearningLecture.pptxDeepLearningLecture.pptx
DeepLearningLecture.pptx
 
مدخل إلى تعلم الآلة
مدخل إلى تعلم الآلةمدخل إلى تعلم الآلة
مدخل إلى تعلم الآلة
 
Deep learning from scratch
Deep learning from scratch Deep learning from scratch
Deep learning from scratch
 
Machine Learning, Deep Learning and Data Analysis Introduction
Machine Learning, Deep Learning and Data Analysis IntroductionMachine Learning, Deep Learning and Data Analysis Introduction
Machine Learning, Deep Learning and Data Analysis Introduction
 
Deep learning with TensorFlow
Deep learning with TensorFlowDeep learning with TensorFlow
Deep learning with TensorFlow
 
Ml ppt at
Ml ppt atMl ppt at
Ml ppt at
 
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
9.b-CMPS 403-F20-Session 9-Intro to ML II.pdf
 
Teaching Constraint Programming, Patrick Prosser
Teaching Constraint Programming,  Patrick ProsserTeaching Constraint Programming,  Patrick Prosser
Teaching Constraint Programming, Patrick Prosser
 
Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017
 
Week 2 - ML models and Linear Regression.pptx
Week 2 - ML models and Linear Regression.pptxWeek 2 - ML models and Linear Regression.pptx
Week 2 - ML models and Linear Regression.pptx
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Regression
RegressionRegression
Regression
 
Deep learning - a primer
Deep learning - a primerDeep learning - a primer
Deep learning - a primer
 
Deep learning - a primer
Deep learning - a primerDeep learning - a primer
Deep learning - a primer
 
Build tic tac toe with javascript (3:28)
Build tic tac toe with javascript (3:28)Build tic tac toe with javascript (3:28)
Build tic tac toe with javascript (3:28)
 
Matlab pt1
Matlab pt1Matlab pt1
Matlab pt1
 
Support Vector Machines Simply
Support Vector Machines SimplySupport Vector Machines Simply
Support Vector Machines Simply
 
04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks
 
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
 
[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need
 

Kürzlich hochgeladen

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 

Kürzlich hochgeladen (20)

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 

Machine Learning on Azure - AzureConf

  • 1. Machine Learning on Azure Seth Juarez Analytics Program Manager DevExpress @sethjuarez
  • 3. Agenda 1) data science 2) prediction 3) process 4) models 5) AzureML
  • 4. data science • key word: “science” • try stuff • it (might not | won’t) work the first time question • this might work… research • wikipedia time hypothesis • I have an idea experiment • try it out analysis • did this even work? conclusion • time for a better idea
  • 5. machine learning • finding (and exploiting) patterns in data • replacing “human writing code” with “human supplying data” • system figures out what the person wants based on examples • need to abstract from “training” examples to “test” examples • most central issue in ML: generalization
  • 6. machine learning • split into two (ish) areas • supervised learning • predicting the future • learn from past examples to predict future • unsupervised learning • understanding the past • making sense of data • learning structure of data • compressing data for consumption
  • 9. neat applications • spam catchers • ocr (optical character recognition) • natural language processing • machine translation • biology • medicine • robotics (autonomous systems) • etc… 9
  • 11. making decisions • what kinds of decisions are we making? • binary classification • yes/no, 1/0, male/female • multi-class classification • {A, B, C, D, F} (Grade), {1, 2, 3, 4} (Class), {teacher, student, secretary} • regression • number between 0 and 100, real value 11
  • 12. process data clean transform maths predict model
  • 13. data Class Outlook Temp. Windy Play Sunny Low Yes No Play Sunny High Yes No Play Sunny High No Play Overcast Low Yes Play Overcast High No Play Overcast Low No No Play Rainy Low Yes Play Rainy Low No ? Sunny Low No label (y) play / no play features outlook, temp, windy values (x) [Sunny, Low, Yes] Labeled dataset is a collection of (X, Y) pairs. Given a new x, how do we predict y?
  • 14. clean / transform / maths Class Outlook Temp. Windy Play Sunny Lowest Yes No Play ? High Yes No Play Sunny High KindOf Play Overcast ? Yes Play Turtle Cloud High No Play Overcast ? No No Play Rainy Low 28% Play Rainy Low No ? Sunny Low No need to clean up data need to convert to model-able form (linear algebra) yak shaving Any apparently useless activity which, by allowing you to overcome intermediate difficulties, allows you to solve a larger problem. I was doing a bit of yak shaving this morning, and it looks like it might have paid off. http://en.wiktionary.org/wiki/yak_shaving
  • 15. clean / transform / maths Class Outlook Temp. Windy Play Sunny Low Yes No Play Sunny High Yes No Play Sunny High No Play Overcast Low Yes Play Overcast High No Play Overcast Low No No Play Rainy Low Yes Play Rainy Low No ? Sunny Low No need to clean up data need to convert to model-able form (linear algebra)
  • 16. model Class Outlook Temp. Windy Play Sunny Low Yes No Play Sunny High Yes No Play Sunny High No Play Overcast Low Yes Play Overcast High No Play Overcast Low No No Play Rainy Low Yes Play Rainy Low No ? Sunny Low No
  • 17. predict Class Outlook Temp. Windy ? Sunny Low No PLAY!!!
  • 18. models how do we build them?
  • 19. linear classifiers • in order to classify things properly we need: • a way to mathematically represent examples • a way to separate classes (yes/no) • “decision boundary” • excel example • graph example 19 MODELS
  • 20. linear classifiers • dot product of vectors • [ 3, 4 ] ● [ 1, 2 ] = (3 × 1) + (4 × 2) = 11 • a ● b = | a | × | b | cos θ • When does this equal 0? • why would this be useful? • decision boundary can be represented using a single vector 20 MODELS
  • 21. perceptron …and other linear models
  • 22. linear classifiers • Frank Rosenblatt, Cornell 1957 • let’s make a line (by using a single vector) • take the dot product between the line and the new point • > 0 belongs to class 1 • < 0 belongs to class 2 • == 0 flip a coin we don’t know • for each example, if we make a mistake, move the line 22 MODELS
  • 27. kernel methods 2푛 + 푛 2 = 2n + 푛 푛−1 2 features….
  • 28. perceptron • minimize mistakes by moving w arg min (풘,풃) 1 2 풘 2 subject to: 푦푖 풘 ∙ 풙풊 − 푏 ≥ 1 REMINDER
  • 29. perceptron • eventually this becomes an optimization problem 퐿 훼 = 푛 푖=1 훼푖 − 1 2 푖,푗 푇풙푗 훼푖훼푗 푦푖푦푗풙푖 subject to: 훼푖 ≥ 0, 푛 푖=1 훼푖푦푖 = 0 REMINDER
  • 30. perceptron • eventually this becomes an optimization problem 퐿 훼 = 푛 푖=1 훼푖 − 1 2 푖,푗 푇풙푗 훼푖훼푗 푦푖푦푗풙푖 subject to: 훼푖 ≥ 0, 푛 푖=1 훼푖푦푖 = 0 REMINDER
  • 31. perceptron • eventually this becomes an optimization problem 퐿 훼 = 푛 푖=1 훼푖 − 1 2 푖,푗 훼푖훼푗푦푖푦푗 푘 풙푖 , 풙푗 subject to: 훼푖 ≥ 0, 푛 푖=1 훼푖푦푖 = 0 REMINDER dot product
  • 32. perceptron • Frank Rosenblatt, Cornell 1957 • let’s make a line (by using a single vector) • take the dot product between the line and the new point • > 0 belongs to class 1 • < 0 belongs to class 2 • == 0 flip a coin we don’t know • for each example, if we make a mistake, move the line 32 REMINDER
  • 33. kernel (one weird trick….) MODELS • store dot product in a table 푇풙0 ⋯ 풙0 풙0 푇풙푗 ⋮ ⋱ ⋮ 풙푇푖 풙0 ⋯ 풙푖 푇풙푗 • call it the “kernel matrix” and “kernel trick” • project into any space and still learn a linear model
  • 34. support vector machines MODELS • this method is the basis for SVM’s • returns a set of vectors (<< n) to make decision • essentially changed the space to make it separable
  • 35. kernels • polynomial kernel 퐾 풙, 풚 = 풙푇풚 + 푐 푑 • RBF kernel 퐾 풙, 풚 = exp − 풙 − 풚 2 2 2휎2 MODELS 1
  • 36. 36
  • 40. neural networks Play? ℎ1 ℎ2 ℎ3 퐵1
  • 43. decision trees Class Outlook Temp. Windy Play Sunny Low Yes No Play Sunny High Yes No Play Sunny High No Play Overcast Low Yes Play Overcast High No Play Overcast Low No No Play Rainy Low Yes Play Rainy Low No ? Sunny Low No
  • 44. decision trees • how should the computer split? • information gain (with entropy) • entropy measures how disorganized your answer is. • information gain says: • if I separate the answer by the values in a particular column, does the answer become *more* organized?
  • 45. decision trees • calculating information gain: 퐼퐺 푦, 푎 = 퐻 푦 − 퐻 푦 푎) 푎 ∈ 퐴푡푡푟(푥) • 퐻 푦 – how messy is the answer • 퐻 푦 푎) – how messy is the answer if we know a?
  • 48. do they work? testing
  • 49. how well is it doing? Train Test Use 80% Use 20%
  • 50. AzureML putting it all together 50
  • 51. process reminder (same on Azure) data clean transform maths predict model
  • 52. experiments putting it all together 52
  • 53. Truth true false Guess positive 푡푟푢푒 푝표푠푖푡푖푣푒 푓푎푙푠푒 푝표푠푖푡푖푣푒 푝푟푒푐푖푠푖표푛 = 푡푝 푡푝 + 푓푝 negative 푓푎푙푠푒 푛푒푔푎푡푖푣푒 푡푟푢푒 푛푒푔푎푡푖푣푒 푟푒푐푎푙푙 = 푡푝 푡푝 + 푓푛 푎푐푐푢푟푎푐푦 = 푡푝 + 푡푛 푡푝 + 푡푛 + 푓푝 + 푓푛 confusion matrix
  • 54. AzureML WebServices putting it all together 54
  • 55. Get started with a free trial http://aka.ms/AzureConf2014 Or, use your existing benefits… http://aka.ms/AzureConf-MemberOffers
  • 56. THANK YOU!!! AND STAY TUNED FOR THE NEXT SESSIONS!!!!!
  • 57. Seth Juarez Analytics Program Manager, DevExpress @sethjuarez sethj@devexpress.com