IndexError Traceback (most recent call last)
in
----> 1 l = train(X,Y,model,100,0.0002)
in train(X, Y, model, epochs, learning_rate, logs)
3
4 classes = 2
----> 5 Y_OHT = one_hot(Y,classes)
6
7 for ix in range(epochs):
in one_hot(y, depth)
6 m = y.shape[0]
7 y_oht = np.zeros((m,depth))
----> 8 y_oht[np.arange(m),y] = 1
9 #print(m)
10 return y_oht
IndexError: index 2 is out of bounds for axis 1 with size 2
Here is the link to my code: