Skip to content

Commit 629f89e

Browse files
authored
Merge pull request #50425 from ShawnKupfer/WB1790
AB#1008686: Train and understand regression models in machine learning
2 parents 8d62adb + a026eb6 commit 629f89e

17 files changed

+498
-318
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.introduction
3-
title: Introduction
4-
metadata:
5-
title: Introduction
6-
description: Introduction to the introduction to regression module.
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 2
12-
content: |
13-
[!include[](includes/1-introduction.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: Introduction to the introduction to regression module.
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/1-introduction.md)]
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.what-is-regression
3-
title: What is regression?
4-
metadata:
5-
title: What is regression?
6-
description: Conceptual unit introducing what regression in machine learning is
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 4
12-
content: |
13-
[!include[](includes/2-what-is-regression.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.what-is-regression
3+
title: What is regression?
4+
metadata:
5+
title: What is regression?
6+
description: Conceptual unit introducing what regression in machine learning is
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 4
12+
content: |
13+
[!include[](includes/2-what-is-regression.md)]
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.exercise-train-linear-regression
3-
title: Exercise - Train a simple linear regression model
4-
metadata:
5-
title: Exercise - Train a simple linear regression model
6-
description: Learn how to train a simple linear regression model.
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 8
12-
sandbox: true
13-
notebook: notebooks/4-3-exercise-train-linear-regression.ipynb
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.exercise-train-linear-regression
3+
title: Exercise - Train a simple linear regression model
4+
metadata:
5+
title: Exercise - Train a simple linear regression model
6+
description: Learn how to train a simple linear regression model.
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 8
12+
sandbox: true
13+
notebook: notebooks/4-3-exercise-train-linear-regression.ipynb
14+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.multiple-linear-regression
3-
title: Multiple linear regression and R-squared
4-
metadata:
5-
title: Multiple linear regression and R-squared
6-
description: Conceptual unit about multiple linear regression and R-squared in machine learning
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 4
12-
content: |
13-
[!include[](includes/4-multiple-linear-regression.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.multiple-linear-regression
3+
title: Multiple linear regression and R-squared
4+
metadata:
5+
title: Multiple linear regression and R-squared
6+
description: Conceptual unit about multiple linear regression and R-squared in machine learning
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 4
12+
content: |
13+
[!include[](includes/4-multiple-linear-regression.md)]
14+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.exercise-multiple-linear-regression
3-
title: Exercise - Train a multiple linear regression model
4-
metadata:
5-
title: Exercise - Train a multiple linear regression model
6-
description: Exercise unit about training a multiple linear regression model in machine learning
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 10
12-
sandbox: true
13-
notebook: notebooks/4-5-exercise-multiple-linear-regression.ipynb
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.exercise-multiple-linear-regression
3+
title: Exercise - Train a multiple linear regression model
4+
metadata:
5+
title: Exercise - Train a multiple linear regression model
6+
description: Exercise unit about training a multiple linear regression model in machine learning
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 10
12+
sandbox: true
13+
notebook: notebooks/4-5-exercise-multiple-linear-regression.ipynb
14+
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.polynomial-regression
3-
title: Polynomial Regression
4-
metadata:
5-
title: Polynomial Regression
6-
description: Conceptual unit about polynomial regression in machine learning
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 6
12-
content: |
13-
[!include[](includes/6-polynomial-regression.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.polynomial-regression
3+
title: Polynomial Regression
4+
metadata:
5+
title: Polynomial Regression
6+
description: Conceptual unit about polynomial regression in machine learning
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 6
12+
content: |
13+
[!include[](includes/6-polynomial-regression.md)]
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.exercise-polynomial-regression
3-
title: Exercise - Polynomial regression
4-
metadata:
5-
title: Exercise - Polynomial regression
6-
description: Exercise unit learning about polynomial regression in machine learning
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 12
12-
sandbox: true
13-
notebook: notebooks/4-7-exercise-polynomial-regression.ipynb
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.exercise-polynomial-regression
3+
title: Exercise - Polynomial regression
4+
metadata:
5+
title: Exercise - Polynomial regression
6+
description: Exercise unit learning about polynomial regression in machine learning
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 12
12+
sandbox: true
13+
notebook: notebooks/4-7-exercise-polynomial-regression.ipynb
14+
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.knowledge-check
3-
title: Module assessment
4-
metadata:
5-
title: Module assessment
6-
description: Multiple-choice questions
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 3
12-
quiz:
13-
title: Check your knowledge
14-
questions:
15-
- content: 'Why is linear regression a popular model?'
16-
choices:
17-
- content: "It's fast to calculate and easily interpreted"
18-
isCorrect: false
19-
explanation: "Incorrect."
20-
- content: "It's easy to extrapolate from and the fitting procedure doesn't require tuning to find an optimum solution"
21-
isCorrect: false
22-
explanation: "Incorrect."
23-
- content: "Both options are correct"
24-
isCorrect: true
25-
explanation: "Correct."
26-
- content: 'What is the difference between multiple and simple regression?'
27-
choices:
28-
- content: "Simple regression uses special mathematics to speed up analysis"
29-
isCorrect: false
30-
explanation: "Incorrect."
31-
- content: "Multiple regression predicts multiple labels, but simple regression doesn't"
32-
isCorrect: false
33-
explanation: "Incorrect."
34-
- content: "Multiple regression accepts multiple features, but simple regression doesn't"
35-
isCorrect: true
36-
explanation: "Correct."
37-
- content: 'What are the main strengths and weaknesses of polynomial regression, compared to simple linear regression?'
38-
choices:
39-
- content: "Polynomial regression is a more popular method than linear regression, but it always needs to be fitted iteratively"
40-
isCorrect: false
41-
explanation: "Incorrect."
42-
- content: "Polynomial regression can explain nonlinear relationships, but it often makes extreme predictions when extrapolated"
43-
isCorrect: true
44-
explanation: "Correct."
45-
- content: "Polynomial regression can be extrapolated, unlike simple linear regression, but it can take a long time to compute"
46-
isCorrect: false
47-
explanation: "Incorrect."
48-
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.knowledge-check
3+
title: Module assessment
4+
metadata:
5+
title: Module assessment
6+
description: Multiple-choice questions
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
quiz:
13+
title: Check your knowledge
14+
questions:
15+
- content: 'Why is linear regression a popular model?'
16+
choices:
17+
- content: "It's fast to calculate and easily interpreted."
18+
isCorrect: false
19+
explanation: "Incorrect."
20+
- content: "It's easy to extrapolate from and the fitting procedure doesn't require 'tuning' to find an optimum solution."
21+
isCorrect: false
22+
explanation: "Incorrect."
23+
- content: "Both options are correct."
24+
isCorrect: true
25+
explanation: "Correct."
26+
- content: "What's the difference between multiple and simple regression?"
27+
choices:
28+
- content: "Simple regression uses special mathematics to speed up analysis."
29+
isCorrect: false
30+
explanation: "Incorrect."
31+
- content: "Multiple regression predicts multiple labels, but simple regression doesn't."
32+
isCorrect: false
33+
explanation: "Incorrect."
34+
- content: "Multiple regression accepts multiple features, but simple regression doesn't."
35+
isCorrect: true
36+
explanation: "Correct."
37+
- content: 'What are the main strengths and weaknesses of polynomial regression, compared to simple linear regression?'
38+
choices:
39+
- content: "Polynomial regression is a more popular method than linear regression, but it always needs to be fitted iteratively."
40+
isCorrect: false
41+
explanation: "Incorrect."
42+
- content: "Polynomial regression can explain nonlinear relationships, but it often makes extreme predictions when extrapolated."
43+
isCorrect: true
44+
explanation: "Correct."
45+
- content: "Polynomial regression can be extrapolated, unlike simple linear regression, but it can take a long time to compute."
46+
isCorrect: false
47+
explanation: "Incorrect."
48+
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.machinelearning.understand-regression-machine-learning.summary
3-
title: Summary
4-
metadata:
5-
title: Summary
6-
description: An overview of the content covered in the module.
7-
ms.date: 07/21/2024
8-
author: s-polly
9-
ms.author: scottpolly
10-
ms.topic: unit
11-
durationInMinutes: 3
12-
content: |
13-
[!include[](includes/9-summary.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.machinelearning.understand-regression-machine-learning.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: An overview of the content covered in the module.
7+
ms.date: 05/14/2025
8+
author: s-polly
9+
ms.author: scottpolly
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
content: |
13+
[!include[](includes/9-summary.md)]

learn-pr/azure/understand-regression-machine-learning/includes/1-introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Regression is a simple, common, and highly useful data analysis technique, colloquially referred to as "fitting a trend line." Regression identifies the strength of relationship between one or more features and a single label. Its simplicity, predictable behavior, ability to forecast, and high level of interpretability means this technique is used throughout finance, business, social sciences, epidemiology, and medicine.
1+
Regression is a simple, common, and highly useful data-analysis technique, colloquially referred to as "fitting a trend line." Regression identifies the strength of relationship between one or more features and a single label. Its simplicity, predictable behavior, ability to forecast, and high level of interpretability means this technique is used throughout finance, business, social sciences, epidemiology, and medicine.
22

33
In this module, we'll take a deeper dive into how regression works, understand its limitations, and learn how to assess its performance.
44

55
## Scenario: Veterinary Clinic Overrun
66

77
Throughout this module, we’ll be using the following example scenario to explain the concepts underlying regression. This scenario is designed to provide an example for how you might use this technique when analyzing future data.
88

9-
The avalanche-rescue dog charity you run has had a sudden wave of illness. After a day of retraining and some social activities, many dogs you work with have fallen unwell, the main symptom being fever (elevated body temperature). Concerned for the dogs who haven't yet presented with symptoms, your team has collected basic information on the first 100 dogs who fell ill. Your job is to identify which types of dogs have higher risks of illness, so that they can be proactively checked by the vet.
9+
The avalanche-rescue dog charity you run has had a sudden wave of illness. After a day of retraining and some social activities, many dogs you work with have fallen unwell, the main symptom being fever (elevated body temperature). Concerned for the dogs who haven't yet presented with symptoms, your team has collected basic information on the first 100 dogs who fell ill. Your job is to identify which types of dogs have higher risks of illness so the vet can check them proactively.
1010

1111
## Learning objectives
1212

0 commit comments

Comments
 (0)