Activation Function and output
Lets create a matrix of shape 5×5 to understand the activation function working: import numpy as np Y2=np.arange(25).reshape(5,5) print(Y2) array([[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19], [20, 21, 22, 23, 24]]) Now create a weight matrix of similar shape W3=np.arange(25).reshape(5,5) …