def sigmoid_numpy(x):
 assert (not isinstance(x, theano.gof.Variable))
 return (1.0 / (1.0 + np.exp((- x))))

def sigmoid_numpy ( x ) : assert ( not isinstance ( x , theano . gof . Variable ) ) return ( 1.0 / ( 1.0 + np . exp ( ( - x ) ) ) )
numpy implementation of the logistic sigmoid function .