def neuron(w, x):
 return sigmoid((w[0] + np.inner(w[1:], x)))

def neuron ( w , x ) : return sigmoid ( ( w [ 0 ] + np . inner ( w [ 1 : ] , x ) ) )
return the output from the sigmoid neuron with weights w and inputs x .