Week 1, coding assignment (eval function problem)

Hi all, is this supposed to be my problem(exercise 3) ? the loss seems right!

My notebook id is: zajajbbfoudn

1 Like

Hello Jerry-liu,

Can you share codes for the mentioned error via personal DM. Click on my name and then message.

Kindly make sure your y_true and y_pred values are placed correctly. You error is reflected because of them being used in one of cofficient codes there is an error.

Regards
DP

Hello Jerry,

You are using incorrect function kindly use K.log and K.mean rather than numpy function.

Also recall the loss function in a single code line using reference of the image below

Remember the mean is not applied separately for pos and neg weights but as a whole (refer the equation image highlighted to write your code correctly.

Regards
DP

Thank you! Prasad. I did miss the hints for the functions to use!

1 Like