We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905b3d0 commit f515423Copy full SHA for f515423
lab-05-2-logistic_regression_diabetes.py
@@ -16,7 +16,7 @@
16
W = tf.Variable(tf.random_normal([8, 1]), name='weight')
17
b = tf.Variable(tf.random_normal([1]), name='bias')
18
19
-# Hypothesis using sigmoid: tf.div(1., 1. + tf.exp(tf.matmul(X, W)))
+# Hypothesis using sigmoid: tf.div(1., 1. + tf.exp(-tf.matmul(X, W)))
20
hypothesis = tf.sigmoid(tf.matmul(X, W) + b)
21
22
# cost/loss function
0 commit comments