# Help with cost function

**URL:** <https://community.deeplearning.ai/t/help-with-cost-function/340580>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [May 21, 2023, 11:19pm UTC](https://community.deeplearning.ai/t/help-with-cost-function/340580 "2023-05-21T23:19:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [May 21, 2023, 11:48pm UTC](https://community.deeplearning.ai/t/help-with-cost-function/340580/4 "2023-05-21T23:48:43Z")

</div>

[Here’s a thread](https://community.deeplearning.ai/t/when-to-use-np-dot/109202/6) which discusses how to compute the cost. There are a number of ways to do it.

[Here’s another one](https://community.deeplearning.ai/t/w2-a2-ex-5-value-error-shapes-1-3-and-1-3-not-aligned/263358/2) that starts directly from 1 x 3 dot 1 x 3.

---

_[View the full topic](https://community.deeplearning.ai/t/help-with-cost-function/340580)._
