# C4\_W1\_Assignment - Errors from grader

**URL:** <https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093>\
**Category:** Sequences, Time Series and Prediction\
**Tags:** week-module-1\
**Created:** [August 24, 2022, 1:09pm UTC](https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093 "2022-08-24T13:09:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim\_jeongsoo](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@kim\_jeongsoo](https://community.deeplearning.ai/u/kim_jeongsoo)\
**Post date:** [August 24, 2022, 1:09pm UTC](https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093/1 "2022-08-24T13:09:16Z")

</div>

Hello

Trying to finish C4\_W1 assignments, but I’m getting below errors and got 0 score from all the grade points.

train\_val\_split. ( 0 points / 10 )  
There was a problem compiling the code from your notebook. Details:  
unsupported operand type(s) for +: ‘float’ and ‘NoneType’

compute\_metrics ( 0 points / 10 )  
There was a problem compiling the code from your notebook. Details:  
unsupported operand type(s) for +: ‘float’ and ‘NoneType’

Can you please help ?

When I ran individual cell in jupyter notebook, it generated exactly same output as the expected out - graphs / numbers etc.

Regards,

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [August 24, 2022, 5:53pm UTC](https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093/2 "2022-08-24T17:53:46Z")

</div>

Please click my name and message your notebook as an attachment.

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [August 25, 2022, 12:11pm UTC](https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093/3 "2022-08-25T12:11:45Z")

</div>

Please don’t use global variables when possible.  
Looking at the function signature `def train_val_split(time, series, time_step=SPLIT_TIME):`, use the function parameters to perform the train / validation split.

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [August 25, 2022, 12:31pm UTC](https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093/4 "2022-08-25T12:31:58Z")

</div>

Notebook metadata is corrupt. Please refresh your workspace and try again.  
See `Refresh your Lab Workspace` section [here](https://www.coursera.support/s/article/360044758731-Solving-common-issues-with-Coursera-Labs?language=en_US)  
If you’ve already done this, contact coursera [help](https://coursera.org/help)

Please see [this](https://community.deeplearning.ai/t/name-training-images-is-not-defined/161543/5) link to learn more about grader metadata.

The cell containing `def train_val_split(time, series, time_step=SPLIT_TIME):` doesn’t have grader metadata.

---

<div class="post-metadata">

**Author:** ![kim\_jeongsoo](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@kim\_jeongsoo](https://community.deeplearning.ai/u/kim_jeongsoo)\
**Post date:** [August 25, 2022, 1:24pm UTC](https://community.deeplearning.ai/t/c4-w1-assignment-errors-from-grader/192093/5 "2022-08-25T13:24:37Z")

</div>

Thanks, will try refresh workspace and try again.
