# Wrong function documentation in Optional Lab: Multiple Variable Linear Regression

**URL:** <https://community.deeplearning.ai/t/wrong-function-documentation-in-optional-lab-multiple-variable-linear-regression/218478>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-2\
**Created:** [October 16, 2022, 1:18pm UTC](https://community.deeplearning.ai/t/wrong-function-documentation-in-optional-lab-multiple-variable-linear-regression/218478 "2022-10-16T13:18:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![haibrenner](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/haibrenner/32/31249_2.png) [@haibrenner](https://community.deeplearning.ai/u/haibrenner)\
**Post date:** [October 16, 2022, 1:18pm UTC](https://community.deeplearning.ai/t/wrong-function-documentation-in-optional-lab-multiple-variable-linear-regression/218478/1 "2022-10-16T13:18:59Z")

</div>

Hi

So in MLS1, week2, Optional Lab: Multiple Variable Linear Regression  
Inside the Jupyter notebook document inside section 5.2 Gradient Descent With Multiple Variables  
There’s this function: gradient\_descent()  
In its document it says: “Performs batch gradient descent to learn theta. Updates theta by taking num\_iters gradient steps with learning rate alpha”  
It mentions twice the variable theta, but there is no such parameter. “Theta” should be replaced with “(w,b)” I guess

I wish to notify the course managers. I hope they read discussions here

---

<div class="post-metadata">

**Author:** ![VIVEK\_PATEL1](https://avatars.discourse-cdn.com/v4/letter/v/8797f3/32.png) [@VIVEK\_PATEL1](https://community.deeplearning.ai/u/VIVEK_PATEL1)\
**Post date:** [October 16, 2022, 1:38pm UTC](https://community.deeplearning.ai/t/wrong-function-documentation-in-optional-lab-multiple-variable-linear-regression/218478/2 "2022-10-16T13:38:22Z")

</div>

Hi @haibrenner  
Yes, the query and suggestion are always seen and implemented.  
First of all, thank you to enlighten the topic, and can you give us more information about which document you are talking about?  
Can specify the location or any link which helps us?  
I clearly see the (w,b) in the lab so just mention the document and we will look into it and correct it.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [October 16, 2022, 3:54pm UTC](https://community.deeplearning.ai/t/wrong-function-documentation-in-optional-lab-multiple-variable-linear-regression/218478/3 "2022-10-16T15:54:02Z")

</div>

Thanks, you are correct. It has been reported.

In the old version of this course, the weights and bias were stored in a theta vector.

---

<div class="post-metadata">

**Author:** ![haibrenner](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/haibrenner/32/31249_2.png) [@haibrenner](https://community.deeplearning.ai/u/haibrenner)\
**Post date:** [October 16, 2022, 4:00pm UTC](https://community.deeplearning.ai/t/wrong-function-documentation-in-optional-lab-multiple-variable-linear-regression/218478/4 "2022-10-16T16:00:00Z")

</div>

From here:

> **[Coursera | Online Courses & Credentials From Top Educators. Join for Free...](https://www.coursera.org/learn/machine-learning/ungradedLab/7GEJh/optional-lab-multiple-linear-regression)**
>
> Learn online and earn valuable credentials from top universities like Yale, Michigan, Stanford, and leading companies like Google and IBM. Join Coursera for free and transform your career with degrees, certificates, Specializations, & MOOCs in...

The python function documentation in section 5.2, inside the code.

But I see now from the next response that the issue is indeed verified.
