I keep getting an error for this part and it’s not letting me pass the assignment when submitted. How can I submit my code to a mentor for review?
Please post an image that shows the entire error message. Your image cuts off the important part (off the bottom).
Thanks. That should be enough information for a course mentor (which I’m not) to provide some guidance.
Essentially it’s saying there is an error in your soft_dice_loss() function.
Thank you; hopefully I get their response soon
hi @Ev360
refer this post comment solution
if issue still persist then let me know here.
There are many older threads with similar issues with post solutions, if you use the search bar with the assertion error mention, you can see all those related posts to your similar query for referal.(mentioning this for future reference
regards
DP
Hi,
I just tried using all the other suggested solutions, but the problem still persists
please click on my name and then message me screenshot of the grade function codes you are failing
Okay will do so now.
Thank you!
hi @Ev360
You are suppose to apply epsilon to the numerator and denominator when you calculating it separately and not while calculating the dice loss as it use K.mean to calculate the dice loss. There is implementation error.
remember dice loss here is by 1-K.mean(numerator/denominator) which you actually did calculate correctly but including epsilon to the k.mean caused this assertion error.
you are doing the same mistake in UNQ4 codes too, kindly apply the epsilon to the numerator and denominator when you implemented it in separate steps.
Thank you, DP

