changeset 24:89f46435a9e2

[logistic regression] call cost function
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 09:58:01 -0700
parents f34110e28a0a
children c52d8173b056
files tvii/logistic_regression.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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