W3 assignment - Grading

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 its incorrect but in the case the autograder has been assigned to look codes in particular way and it doesn’t matches with programmer frame of codes, it can still throw error or grade failure.

@ardonp I already mentioned to you not to post codes on public post, please go through faq section in detail for How to Use the Forum Code of Conduct

you can DM the codes with what correction you have done but how much I saw you still repeating the same mistake, I have shared images below on how it looks when a fresh copy is downloaded and jn that only None need to be replaced with correct codes, no extra code lines required.

You are suppose to only replace None (in green) placed between the markers ###START AND END CODE HERE### with the right codes, see the image below

Don’t add any other extra code lines, just replace None with the right codes