DEV Community


Discussion on: Build a flexible Neural Network with Backpropagation in Python

rochaowng profile image

Awesome tutorial, many thanks.
But I have one doubt, can you help me?

self.z2_error = # z2 error: how much our hidden layer weights contributed to output error
self.z2_delta = self.z2_error*self.sigmoidPrime(self.z2) # applying derivative of sigmoid to z2 error

self.W1 += # adjusting first set (input --> hidden) weights
self.W2 += # adjusting second set (hidden --> output) weights

what means those T's? self.w2.T, self.z2.T etc...

tamilarasu_u profile image
Tamilarasu U

T is to transpose matrix in numpy.