Wenwei Lin

← All events

Hosted

Global Azure 2023: Machine Learning for Beginners

No formulas. First, what kinds of questions machine learning can answer; then a drag-and-drop diabetes prediction model in Azure Machine Learning.

Date
2023.05.12
Format
Online
My role
Speaker
With
Student ambassador Timmy Wen; mentor: MVP Duan Linli
Tags
微软学生大使 · Global Azure · 机器学习 · Azure

An online workshop: no formulas, first figure out what kinds of questions machine learning can answer, then build a diabetes prediction model in Azure Machine Learning by dragging and dropping.

Opening slide: Global Azure, Machine Learning for Beginners, student ambassadors Wenwei Lin and Timmy Wen, mentor MVP Duan Linli

I co-hosted with student ambassador Timmy Wen, mentored by MVP Duan Linli. I also wrote out a full script.

What I covered

Machine learning is all around you. The script opened: “You may not know it, but machine learning is right next to you.”

Machine learning in everyday life: search engines, email, voice assistants, ChatGPT, Taobao, Bilibili, Douyin, Xiaohongshu

Data science answers only five kinds of questions. Is it A or B (classification)? Is it normal (anomaly detection)? How much (regression)? How is it organised (clustering)? What next (reinforcement learning)?

Five questions data science can answer

Ask a sharp question. I put Aladdin’s lamp on a slide: the genie can answer anything, but it’s mischievous, and a vague question gets a vague answer. “What will my stock do?” only gets “it will change”; “What will my stock sell for next week?” gets a real answer.

Ask a sharp question: imagine a mischievous genie; you need a question it can’t wriggle out of

A prediction without a computer. Write down the weight and price of some diamonds, plot them, draw a straight line, and you can estimate that a 1.35-carat diamond costs about $10,000. That’s linear regression. Draw an “envelope” around the line and you get a range you can trust. The charts were drawn by hand.

Hand-drawn scatter plot: diamond carats and prices on the left, plotted on the right

Confidence interval: an envelope around the regression line

Azure Machine Learning. From low-code to code: Automated ML, the Designer and Notebooks.

What is Azure Machine Learning: Automated ML, Designer, Notebooks, experiments, deployment

Live demo: predicting diabetes. With health check data from 100,000 people, I built the whole pipeline in the Designer: prepare the data, split training and test sets, train, score, evaluate; then turned it into a real-time inference pipeline, deployed it as an endpoint, and asked the model whether “I” have diabetes.

The machine learning Designer: building a training pipeline visually

Finally I compared four algorithms’ accuracy and run time. The conclusion: different algorithms take different time and reach different accuracy on the same problem, and “the one that fits is the best”.

Comparing accuracy and run time of different algorithms

I wrapped up with how students can get free Azure credits and the GitHub Student Pack, and handed out $100 Azure Passes from Global Azure 2023.