# Gradient descent optional lab problem

**URL:** <https://community.deeplearning.ai/t/gradient-descent-optional-lab-problem/358060>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-3\
**Created:** [June 17, 2023, 12:34pm UTC](https://community.deeplearning.ai/t/gradient-descent-optional-lab-problem/358060 "2023-06-17T12:34:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hrithik\_Jerath](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@Hrithik\_Jerath](https://community.deeplearning.ai/u/Hrithik_Jerath)\
**Post date:** [June 17, 2023, 12:34pm UTC](https://community.deeplearning.ai/t/gradient-descent-optional-lab-problem/358060/1 "2023-06-17T12:34:09Z")

</div>

![image](https://global.discourse-cdn.com/dlai/original/3X/a/c/ac81e9289d1ac6456f99b72bb31ab779a217de2e.png)

pls explain the meaning of this code.

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [June 17, 2023, 3:27pm UTC](https://community.deeplearning.ai/t/gradient-descent-optional-lab-problem/358060/2 "2023-06-17T15:27:10Z")

</div>

Im not sure how i is changing here but you should understand that math.ceil rounds the result upwards to the nearest integer. The print line prints the cost at the iteration, the gradients of cost with regards to weights and bias and finally the weights and bias.
