0% found this document useful (0 votes)
8 views

Optional Lab - Multiple Linear Regression - Coursera

Uploaded by

Muhammad Jazib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Optional Lab - Multiple Linear Regression - Coursera

Uploaded by

Muhammad Jazib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

2/5/24, 4:32 AM Optional Lab: Multiple linear regression | Coursera

Navigate Lab Files Help

Optional Lab: Multiple Variable Linear


Regression
In this lab, you will extend the data structures and previously developed routines to support
multiple features. Several routines are updated making the lab appear lengthy, but it makes
minor adjustments to previous routines making it quick to review.

Outline
1.1 Goals
1.2 Tools
1.3 Notation
2 Problem Statement
2.1 Matrix X containing our examples
2.2 Parameter vector w, b
3 Model Prediction With Multiple Variables
3.1 Single Prediction element by element
3.2 Single Prediction, vector
4 Compute Cost With Multiple Variables
5 Gradient Descent With Multiple Variables
5.1 Compute Gradient with Multiple Variables
5.2 Gradient Descent With Multiple Variables
6 Congratulations

1.1 Goals
Extend our regression model routines to support multiple features
Extend data structures to support multiple features
Rewrite prediction, cost and gradient routines to support multiple features
Utilize NumPy np.dot to vectorize their implementations for speed and simplicity

1.2 Tools
In this lab, we will make use of:

NumPy, a popular library for scientific computing


Matplotlib, a popular library for plotting data

In [1]: import copy, math


import as
https://www.coursera.org/learn/machine-learning/ungradedLab/7GEJh/optional-lab-multiple-linear-regression/lab?path=%2Fnotebooks%2FC1_W2_La… 1/2
2/5/24, 4:32 AM Optional Lab: Multiple linear regression | Coursera

https://www.coursera.org/learn/machine-learning/ungradedLab/7GEJh/optional-lab-multiple-linear-regression/lab?path=%2Fnotebooks%2FC1_W2_La… 2/2

You might also like