# HW 3: Stuck on first question

**URL:** <https://community.deeplearning.ai/t/hw-3-stuck-on-first-question/715304>\
**Category:** AI for Medical Diagnosis\
**Tags:** week-module-3\
**Created:** [October 28, 2024, 5:16pm UTC](https://community.deeplearning.ai/t/hw-3-stuck-on-first-question/715304 "2024-10-28T17:16:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/165831_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [October 30, 2024, 1:41am UTC](https://community.deeplearning.ai/t/hw-3-stuck-on-first-question/715304/5 "2024-10-30T01:41:12Z")

</div>

@khichi if you see the below pinned comment, you will see how the grade cell looks when you get a fesh copy of assignment.

you seem to have edited parts of codes which you are not suppose to.

> [@W3 assignment - Grading](https://community.deeplearning.ai/t/w3-assignment-grading/703076/9):
>
> You are getting the exact error because you repeating the same mistake of editing and adding code line path than directly recalling hard coding path means as You have been already given to recall some codes like dice numerator, dice denominator and dice loss, but you recalled disc numerator and and denominator with a part of the recall code and then used other part of codes while recalling dice loss, like in your case, you have added epsilon in the dice loss, dice coefficient which doesn’t mean…

when you next get a fresh copy of assignment, make sure just to replace the None with correct codes placed between the markers ###START AND END CODE HERE###

do not add any import statement in grade cell codes.

Also amke sure to read the comment in the same post for change in dimension codes as that is the usual point of mistake by most learners.

In the one hot encode the categories, num\_classes=num\_classes should be used, rather than what you have used.

Let me know if you need any help further, or send me how you did correction after this(make sure to send codes only by personal DM and not post here)

Regards  
DP

---

_[View the full topic](https://community.deeplearning.ai/t/hw-3-stuck-on-first-question/715304)._
