# Compute gradient name?

**URL:** <https://community.deeplearning.ai/t/compute-gradient-name/243010>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-3\
**Created:** [December 16, 2022, 6:40am UTC](https://community.deeplearning.ai/t/compute-gradient-name/243010 "2022-12-16T06:40:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirsten\_greed](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/kirsten_greed/32/129009_2.png) [@kirsten\_greed](https://community.deeplearning.ai/u/kirsten_greed)\
**Post date:** [December 16, 2022, 6:40am UTC](https://community.deeplearning.ai/t/compute-gradient-name/243010/1 "2022-12-16T06:40:54Z")

</div>

In the week 3 assignment I am confused about the name “Compute Gradient” for a function when applied to multiple samples.  
We seem to compute gradients for each sample and then divide by the number of samples.  
So would it be better called Compute Average Gradient?

---

<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 16, 2022, 8:28am UTC](https://community.deeplearning.ai/t/compute-gradient-name/243010/2 "2022-12-16T08:28:40Z")

</div>

Yes, that would be an accurate name.
