In the first part of the assignment with the character level name generation, there’s this piece:
y= softmax(z)
for the np.random.choice to work, i need to reduce the dimension of y from (27,1) to (27,)
print(y.shape) (27,1)
print(sum(y)) [1.]
print(y.ravel().shape) (27,)
print(sum(y.ravel())) 1.0000000000000002
can’t figure out why the sum of y.ravel not equal to 1