Skip to content

Commit f515423

Browse files
forybmkkweon
authored andcommitted
fix: sigmoid function comment
1 parent 905b3d0 commit f515423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lab-05-2-logistic_regression_diabetes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
W = tf.Variable(tf.random_normal([8, 1]), name='weight')
1717
b = tf.Variable(tf.random_normal([1]), name='bias')
1818

19-
# Hypothesis using sigmoid: tf.div(1., 1. + tf.exp(tf.matmul(X, W)))
19+
# Hypothesis using sigmoid: tf.div(1., 1. + tf.exp(-tf.matmul(X, W)))
2020
hypothesis = tf.sigmoid(tf.matmul(X, W) + b)
2121

2222
# cost/loss function

0 commit comments

Comments
 (0)