W2_A1_Softmax_test(softmax)

This is the function for softmax that I completed:

{moderator edit - solution code removed}

This is the test :
t_x = np.array([[9, 2, 5, 0, 0],
[7, 5, 0, 0 ,0]])
print("softmax(x) = " + str(softmax(t_x)))

softmax_test(softmax)

This is the output:
softmax(x) = [[5.06442745e+02 4.61816006e-01 9.27582244e+00 6.25000000e-02
6.25000000e-02]
[9.13860965e+01 1.23677633e+01 8.33333333e-02 8.33333333e-02
8.33333333e-02]]
Error: Wrong output
2 Tests passed
1 Tests failed

PLEASE HELP

The code you have written does not match the math formula. Please have another look at the formula. What is being added to compute the denominator?

Yes. I discovered the mistake later on. I should have passed x_exp is the np.sum(). Thank you for your response.