(self,inputs)
return np.where(activations>0,1,0)
Run the network forward
Run the network forward
Run the network forward
def pcnfwd(self,inputs):
		""" Run the network forward """

		# Compute activations
		activations =  np.dot(inputs,self.weights)

		# Threshold the activations
		return np.where(activations>0,1,0)
def pcnfwd ( self , inputs ) : # Compute activations activations = np . dot ( inputs , self . weights ) # Threshold the activations return np . where ( activations > 0 , 1 , 0 )