# HG changeset patch # User Jeff Hammel # Date 1504544281 25200 # Node ID 89f46435a9e22c134d91302d950973375a5d8a6d # Parent f34110e28a0adbe53eafa7cc8c6eab098817bbd4 [logistic regression] call cost function diff -r f34110e28a0a -r 89f46435a9e2 tvii/logistic_regression.py --- a/tvii/logistic_regression.py Mon Sep 04 09:14:25 2017 -0700 +++ b/tvii/logistic_regression.py Mon Sep 04 09:58:01 2017 -0700 @@ -44,7 +44,9 @@ """ m = X.shape[1] - A = sigmoid(w.T*X + b)# compute activation + A = sigmoid(w.T*X + b) # compute activation + cost = cost_function(w, b, X, Y) + raise NotImplementedError('TODO') def cost_function(w, b, X, Y): @@ -71,6 +73,7 @@ db=0 raise NotImplementedError('TODO') + def logistic_regression(nx): dw = np.zeros(nx) # TODO