# Week 3 - Train the model

**URL:** <https://community.deeplearning.ai/t/week-3-train-the-model/29242>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [August 16, 2021, 5:16pm UTC](https://community.deeplearning.ai/t/week-3-train-the-model/29242 "2021-08-16T17:16:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AngeSurTerre](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/angesurterre/32/3184_2.png) [@AngeSurTerre](https://community.deeplearning.ai/u/AngeSurTerre)\
**Post date:** [August 16, 2021, 5:16pm UTC](https://community.deeplearning.ai/t/week-3-train-the-model/29242/1 "2021-08-16T17:16:41Z")

</div>

Hello,

I just finished exercise 6 “compute\_cost”, and got the “all tests passed” message. Then I moved on to the “Train the model” section that has a cell which is not labeled as “Graded function”, so I am assuming I don’t have to edit the code in it. After executing that cell, I get the error message below:

ValueError: No gradients provided for any variable: [‘Variable:0’, ‘Variable:0’, ‘Variable:0’, ‘Variable:0’, ‘Variable:0’, ‘Variable:0’].

Am I supposed to modify the content of that cell?

---

<div class="post-metadata">

**Author:** ![AnkitSaini](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@AnkitSaini](https://community.deeplearning.ai/u/AnkitSaini)\
**Post date:** [August 18, 2021, 9:51am UTC](https://community.deeplearning.ai/t/week-3-train-the-model/29242/2 "2021-08-18T09:51:11Z")

</div>

@AngeSurTerre  
You have to provide your code inside this function between the lines mentioned below.  
#YOUR CODE STARTS HERE  
#YOUR CODE ENDS HERE

Apart from this, do not modify anything in the function.
