an introduction to azure machine learning

15
An Introduction to Azure Machine Learning Douglas M. Kline, Ph.D. Professor of Information Systems, UNC Wilmington Database by Doug

Upload: doug-kline

Post on 21-Apr-2017

54 views

Category:

Data & Analytics


1 download

TRANSCRIPT

Page 1: An introduction to azure machine learning

An Introduction to Azure Machine

LearningDouglas M. Kline, Ph.D.

Professor of Information Systems, UNC WilmingtonDatabase by Doug

Page 2: An introduction to azure machine learning

About Me• From Akron, OH• Professor of Information Systems• Teaching: Database, Software Development, others• Research: Neural Networks, Security, Pedagogy, Analytics, IT Strategy,

etc.• Professional: • DatabaseByDoug: SQL Server Consulting (internals, performance tuning)• DatabaseByDoug: https://www.youtube.com/c/databasebydoug• DatabaseByDoug: http://douglaskline.blogspot.com/

Page 3: An introduction to azure machine learning

Overview• What’s Azure?• What’s Azure Machine Learning?• Getting Data• Model Building• Publishing as a Web Service• Consuming the Web Service• Conclusion

Page 4: An introduction to azure machine learning

What’s Azure?• Microsoft’s cloud computing services platform• Storage, Bandwidth, Computing, services• Self-serve• Metered – pay for what you use• Helps to be aware of charges

Page 5: An introduction to azure machine learning

What’s Azure Machine Learning?• Cloud service for analytics• Machine Learning Studio• Visual experiment designer, drag and drop• Pre-defined method blocks

• Classification, clustering, time series, prediction, statistics, etc.• Data input, output, transformations, etc.• Experiment control: data partitioning, model definition, training, scoring, evaluation, etc.

• R blocks

• Deploy models as Web Services• web service marketplace

Page 6: An introduction to azure machine learning

Getting Data• Sources: SQL, Storage, CSV• Manipulation: SQL, column selection, sampling• Basic Stats• R block• Cache Data Set• Save Data Set

Page 7: An introduction to azure machine learning

Demo: Get Data from Azure SQL• Input Block• Wizard• SELECT a sample – randomUniform• Visualizations• Summarize Block• Feature Selection

• Automatic• Interactive

• Save as Data Set• Simple R Block

Page 8: An introduction to azure machine learning

Demo: Model Building• Import Data Set• Split Data: training / testing• Two 2-Group Classification Models:

• NN• Boosted Decision Tree

• Model training• Model scoring (training/testing)• Model evaluation

• Training vs. testing• Model A vs. Model B

• Recalibrate• Save Trained Model

Page 9: An introduction to azure machine learning

Metrics• Accuracy – % correctly classified, positive or negative • Precision - % of positives correctly classified• Recall - % positive predictions correct• F1 – evenly weighted Precision and Recall• ROC – Left side is Threshold=1, Right side is Threshold=0• Recall Curve• AUC – area under curve across all thresholds, max = 1

• Precision/Recall – as threshold changes• Lift chart – “costed”

Page 10: An introduction to azure machine learning

Demo: Public Web Service• Model Setup• Trained Model Block• Data Set Block• Score Block

• Adding Inputs / Outputs• Run• Deploy

Page 11: An introduction to azure machine learning

Demo: Consume Web Service• Web page test• Excel • Code samples: C#, R, Python, etc.• REST

Page 12: An introduction to azure machine learning

What we covered:• What’s Azure?• What’s Azure Machine Learning?• Getting Data• Model Building• Publishing as a Web Service• Consuming the Web Service

Page 13: An introduction to azure machine learning

Conclusion• MS has thought through integration of analytics into systems• Input• Output

• New blocks added all the time• Re-calibration, re-deploy, versioning, etc. possible / automate-able• Powershell

• Metered/charged: storage, compute, database transaction units, bandwidth• Sell-able as a web service• Must be approved as a seller, have a pricing plan, approved as a service, etc.

Page 14: An introduction to azure machine learning

Questions• Questions?

Page 15: An introduction to azure machine learning

Resources• Azure Portal• portal.azure.com

• Selling a web service in the market• https://github.com/Azure/azure-content-nlnl/blob/master/articles/machine-l

earning/machine-learning-publish-web-service-to-azure-marketplace.md