def predict(x, W, b): return sigmoid_double(np.dot(W, x) + b)
def predict(x, W, b): # prediction by applying sigmoid to the output of np.doc(W, x)+b return sigmoid_double(np.dot(W, x) + b)
def predict(x, W, b): # A simple prediction is defined by applying sigmoid to the output of np.doc(W, x) + b. return sigmoid_double(np.dot(W, x) + b)
def sigmoid(z): return np.vectorize(sigmoid_double(z))