Matrix dimensions not matching in back propagation
问题 Here I'm attempting to implement a neural network with a single hidden layer to classify two training examples. This network utilizes the sigmoid activation function. The layers dimensions and weights are as follows : X : 2X4 w1 : 2X3 l1 : 4X3 w2 : 2X4 Y : 2X3 I'm experiencing an issue in back propagation where the matrix dimensions are not correct. This code : import numpy as np M = 2 learning_rate = 0.0001 X_train = np.asarray([[1,1,1,1] , [0,0,0,0]]) Y_train = np.asarray([[1,1,1] , [0,0,0]