I am facing an issue in np.random.choice function where the it is throwing an error of probability not equal to 1, i checked the sum manually and it was 0.99…97.
also the shape of my output vector (y) is (27,1) , i have fixed it by dividing all the values with y.sum(), but i am still curious why did it even happened.
please help me out with this.