W2_A1_Ex-7_softmax

I am geeting the Error in the above mentioned Excercise:
The code is getting passed through the 2 test but unable to pass the 3rd test.
Below is the screen shot of the code and error,

{moderator edit - solution code removed}

Hi there!
Could you please make sure this assignment is DLS-C1-W2? I couldn’t find the corresponding exercise. My C1W2 is logistic regression with a neural network mindset.

Thanks,
Kezhen

This is the Python Introductory assignment, which is before the Logistic Regression assignment.

Note that your code for the softmax is incorrect. You have summed x_i in the denominator. Please have another look at the mathematical formula for softmax shown in the instructions for that section. That’s not what should be in the denominator, right?

YEs, I got it. Thanks for the hint.