Skip to content

Commit

Permalink
fix: sigmoid function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
forybm authored and kkweon committed Jun 14, 2018
1 parent 905b3d0 commit f515423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab-05-2-logistic_regression_diabetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
W = tf.Variable(tf.random_normal([8, 1]), name='weight')
b = tf.Variable(tf.random_normal([1]), name='bias')

# 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)))
hypothesis = tf.sigmoid(tf.matmul(X, W) + b)

# cost/loss function
Expand Down

0 comments on commit f515423

Please sign in to comment.