# Regularization term assignment

**URL:** <https://community.deeplearning.ai/t/regularization-term-assignment/507951>\
**Category:** Unsupervised Learning, Recommenders, Reinforcement\
**Tags:** week-module-2\
**Created:** [December 1, 2023, 1:20am UTC](https://community.deeplearning.ai/t/regularization-term-assignment/507951 "2023-12-01T01:20:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Appiah\_Yebo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/benjamin_appiah_yebo/32/33398_2.png) [@Benjamin\_Appiah\_Yebo](https://community.deeplearning.ai/u/Benjamin_Appiah_Yebo)\
**Post date:** [December 1, 2023, 1:20am UTC](https://community.deeplearning.ai/t/regularization-term-assignment/507951/1 "2023-12-01T01:20:44Z")

</div>

After adding the regularization term I keep getting wrong value for the cost function

---

<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:** [December 1, 2023, 2:32am UTC](https://community.deeplearning.ai/t/regularization-term-assignment/507951/2 "2023-12-01T02:32:59Z")

</div>

It seems there may be an error in your code.
