# Optional Lab: Feature scaling and learning rate - Week 2

**URL:** <https://community.deeplearning.ai/t/optional-lab-feature-scaling-and-learning-rate-week-2/600644>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-2\
**Created:** [March 29, 2024, 8:07am UTC](https://community.deeplearning.ai/t/optional-lab-feature-scaling-and-learning-rate-week-2/600644 "2024-03-29T08:07:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bikash\_grg](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bikash\_grg](https://community.deeplearning.ai/u/bikash_grg)\
**Post date:** [March 29, 2024, 8:07am UTC](https://community.deeplearning.ai/t/optional-lab-feature-scaling-and-learning-rate-week-2/600644/1 "2024-03-29T08:07:52Z")

</div>

Hi everyone, In the screenshot, you can see that it says, “Cost is decreasing throughout the run showing that 𝛼 is not too large” which is true according to the graph. However, in the screenshot, it can be seen that the value increases after the 3rd iteration. Any idea what’s going on here?

 ![Screenshot 2024-03-29 at 08.00.58](https://global.discourse-cdn.com/dlai/original/3X/8/4/8439e2475e69f7137afc4cacba5927840b9fcb01.png)

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [March 29, 2024, 8:25am UTC](https://community.deeplearning.ai/t/optional-lab-feature-scaling-and-learning-rate-week-2/600644/2 "2024-03-29T08:25:58Z")

</div>

Hello @bikash_grg,

The costs kept decreasing and can be seen from the curve on the L.H.S.:

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

At iteration 3 the cost was 1.13157e+04 which is the scientific representation for 11315.7 or 1.13157 \times 10^4,

At iteration 4, the cost was 7.53002e+03 or 7530.02 or 7.53002 \times 10^3.

So, the cost at iteration 4 was lower than that at the 3rd iteration.

Cheers!

---

<div class="post-metadata">

**Author:** ![bikash\_grg](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bikash\_grg](https://community.deeplearning.ai/u/bikash_grg)\
**Post date:** [March 29, 2024, 8:32am UTC](https://community.deeplearning.ai/t/optional-lab-feature-scaling-and-learning-rate-week-2/600644/3 "2024-03-29T08:32:54Z")

</div>

Got it, my bad as I was not focused well. And thanks a lot for the help, mate!

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [March 29, 2024, 8:58am UTC](https://community.deeplearning.ai/t/optional-lab-feature-scaling-and-learning-rate-week-2/600644/4 "2024-03-29T08:58:48Z")

</div>

No worries. We all have times like this. 😉
