# Cost stuck there rather than decreasing

**URL:** <https://community.deeplearning.ai/t/cost-stuck-there-rather-than-decreasing/663767>\
**Category:** NLP with Probabilistic Models\
**Tags:** week-module-4\
**Created:** [July 16, 2024, 3:38am UTC](https://community.deeplearning.ai/t/cost-stuck-there-rather-than-decreasing/663767 "2024-07-16T03:38:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qihua-william](https://avatars.discourse-cdn.com/v4/letter/q/977dab/32.png) [@qihua-william](https://community.deeplearning.ai/u/qihua-william)\
**Post date:** [July 16, 2024, 3:38am UTC](https://community.deeplearning.ai/t/cost-stuck-there-rather-than-decreasing/663767/1 "2024-07-16T03:38:54Z")

</div>

Week 4, Course 2, Probabilistic Models in NLP, of NLP specialization. I am doing the assignment and the cost of my model does not decrease. What is the possible causes of the phenomena? Thanks.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/f/e/feefb84c62c5b5549fe884da4d25df12f9989313.png)

---

<div class="post-metadata">

**Author:** ![qihua-william](https://avatars.discourse-cdn.com/v4/letter/q/977dab/32.png) [@qihua-william](https://community.deeplearning.ai/u/qihua-william)\
**Post date:** [July 16, 2024, 4:19am UTC](https://community.deeplearning.ai/t/cost-stuck-there-rather-than-decreasing/663767/2 "2024-07-16T04:19:54Z")

</div>

I know the reason. W = W - alpha\*DJ/DW. I made mistake to use plus instead of minus.
