def h(w, x):
 neuron1_out = neuron(w[0:3], x)
 neuron2_out = neuron(w[3:6], x)
 return neuron(w[6:9], np.array([neuron1_out, neuron2_out]))

def h ( w , x ) : neuron1_out = neuron ( w [ 0 : 3 ] , x ) neuron2_out = neuron ( w [ 3 : 6 ] , x ) return neuron ( w [ 6 : 9 ] , np . array ( [ neuron1_out , neuron2_out ] ) )
return the output from the three-neuron network with weights w and inputs x .