diff --git a/lab-05-2-logistic_regression_diabetes.py b/lab-05-2-logistic_regression_diabetes.py index e47ff2bd..82782daa 100644 --- a/lab-05-2-logistic_regression_diabetes.py +++ b/lab-05-2-logistic_regression_diabetes.py @@ -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