The document discusses building a machine learning model to predict flight delays using data from the Bureau of Transportation Statistics and National Oceanic and Atmospheric Administration. It describes preparing the data, which includes reading flight and weather data from various sources, inspecting and transforming the data. The goal is to predict delays by building models and evaluating their performance.
2. Introduction to Azure ML Studio
How to Build an ML App in 15 mins
Data Science Process:
Data Ingress and Egress
Data Visualization, Transformation and Feature Selection
Model Building, Evaluating, and Tuning
Operationalizing a Predictive Model
Using R in ML Studio
3. Which statement best matches your relationship to R?
- I’m completely new to R, but want to learn
- I’m learning R
- I’m an experienced R user for personal interests
- I’m an experienced R user for works
- I won’t be using R (but I’m interested in what it can do)
4. 4
• Free and open source R distribution
• Enhanced and distributed by Revolution Analytics
Microsoft R Open
• Built in Advanced Analytics and Stand Alone Server Capability
• Leverages the Benefits of SQL 2016 Enterprise Edition
SQL Server R Services
Microsoft R Products
6. Microsoft R Server
Big-data analytics and distributed computing on Linux,
Hadoop and Teradata
SQL Server 2016
Big-data analytics integrated with SQL Server database
(coming soon)
PowerBI Computations and charts from R scripts in dashboards
Azure ML Studio R Scripts in cloud-based Experiment workflows
Visual Studio
R Tools for Visual Studio: integrated development
environment for R (coming soon)
HDInsights R integrated with cloud-based Hadoop clusters
Cortana Analytics Cloud-based R APIs and Virtual Machines
8. CRAN, MRO, MRS Comparison
Datasize
In-memory
In-memory In-Memory or Disk Based
Speed of Analysis
Single threaded Multi-threaded
Multi-threaded, parallel
processing 1:N servers
Support
Community Community Community + Commercial
Analytic Breadth
& Depth 7500+ innovative analytic
packages
7500+ innovative analytic
packages
7500+ innovative packages +
commercial parallel high-speed
functions
License
Open Source
Open Source
Commercial license.
Supported release with
indemnity
Microsoft
R Open
Microsoft
R Server
15. Vision Analytics
Recommenda-
tion engines
Advertising
analysis
Weather
forecasting for
business
planning
Social network
analysis
Legal
discovery and
document
archiving
Pricing analysis
Fraud
detection
Churn
analysis
Equipment
monitoring
Location-based
tracking and
services
Personalized
Insurance
Machine learning &
predictive analytics are core
capabilities that are needed
throughout your business
20. • Support of open source tools: R (and Python)
• Build a model by visually drag and drop
• Deploy as web service with clicks of button
• Use the service by calling the web API
• Publish an app in Azure Data Marketplace
21.
22. • Goal
• Data sources
Census Income Dataset
UCI Machine Learning Repository
• Dataset Description
http://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.names
23. age workclass fnlwgt education education-num marital-status occupation relationship race sex capital-gain capital-loss hours-per-week native-country income
39 State-gov 77516 Bachelors 13 Never-married Adm-clerical Not-in-family White Male 2174 0 40 United-States <=50K
50 Self-emp-not-inc83311 Bachelors 13 Married-civ-spouseExec-managerialHusband White Male 0 0 13 United-States <=50K
38 Private 215646 HS-grad 9 Divorced Handlers-cleanersNot-in-family White Male 0 0 40 United-States <=50K
53 Private 234721 11th 7 Married-civ-spouseHandlers-cleanersHusband Black Male 0 0 40 United-States <=50K
28 Private 338409 Bachelors 13 Married-civ-spouseProf-specialty Wife Black Female 0 0 40 Cuba <=50K
37 Private 284582 Masters 14 Married-civ-spouseExec-managerialWife White Female 0 0 40 United-States <=50K
49 Private 160187 9th 5 Married-spouse-absentOther-service Not-in-family Black Female 0 0 16 Jamaica <=50K
52 Self-emp-not-inc209642 HS-grad 9 Married-civ-spouseExec-managerialHusband White Male 0 0 45 United-States >50K
31 Private 45781 Masters 14 Never-married Prof-specialty Not-in-family White Female 14084 0 50 United-States >50K
42 Private 159449 Bachelors 13 Married-civ-spouseExec-managerialHusband White Male 5178 0 40 United-States >50K
37 Private 280464 Some-college 10 Married-civ-spouseExec-managerialHusband Black Male 0 0 80 United-States >50K
30 State-gov 141297 Bachelors 13 Married-civ-spouseProf-specialty Husband Asian-Pac-IslanderMale 0 0 40 India >50K
23 Private 122272 Bachelors 13 Never-married Adm-clerical Own-child White Female 0 0 30 United-States <=50K
32 Private 205019 Assoc-acdm 12 Never-married Sales Not-in-family Black Male 0 0 50 United-States <=50K
40 Private 121772 Assoc-voc 11 Married-civ-spouseCraft-repair Husband Asian-Pac-IslanderMale 0 0 40 ? >50K
34 Private 245487 7th-8th 4 Married-civ-spouseTransport-movingHusband Amer-Indian-EskimoMale 0 0 45 Mexico <=50K
25 Self-emp-not-inc176756 HS-grad 9 Never-married Farming-fishingOwn-child White Male 0 0 35 United-States <=50K
32 Private 186824 HS-grad 9 Never-married Machine-op-inspctUnmarried White Male 0 0 40 United-States <=50K
38 Private 28887 11th 7 Married-civ-spouseSales Husband White Male 0 0 50 United-States <=50K
43 Self-emp-not-inc292175 Masters 14 Divorced Exec-managerialUnmarried White Female 0 0 45 United-States >50K
40 Private 193524 Doctorate 16 Married-civ-spouseProf-specialty Husband White Male 0 0 60 United-States >50K
54 Private 302146 HS-grad 9 Separated Other-service Unmarried Black Female 0 0 20 United-States <=50K
35 Federal-gov 76845 9th 5 Married-civ-spouseFarming-fishingHusband Black Male 0 0 40 United-States <=50K
43 Private 117037 11th 7 Married-civ-spouseTransport-movingHusband White Male 0 2042 40 United-States <=50K
59 Private 109015 HS-grad 9 Divorced Tech-support Unmarried White Female 0 0 40 United-States <=50K
56 Local-gov 216851 Bachelors 13 Married-civ-spouseTech-support Husband White Male 0 0 40 United-States >50K
19 Private 168294 HS-grad 9 Never-married Craft-repair Own-child White Male 0 0 40 United-States <=50K
54 ? 180211 Some-college 10 Married-civ-spouse? Husband Asian-Pac-IslanderMale 0 0 60 South >50K
39 Private 367260 HS-grad 9 Divorced Exec-managerialNot-in-family White Male 0 0 80 United-States <=50K
24.
25.
26. • Read from various data sources including:
• Write out the results:
53.
# Connect Adult dataset - visible as data.frame
# Clean up unfortunate variable names (R does not like ‘-’ in variable names)
# Plot some variable distributions by income