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