x_train = [[1, 2], [2, 3], [3, 1], [4, 3], [5, 3], [6, 2]]
y_train = [[0], [0], [0], [1], [1], [1]]
What is the difference between logistic and lenear?
Logistic_Y = [[0], [0], [0], [1], [1], [1]] # One Hot
Linear_Y = [828.659973, 833.450012, 819.23999, 828.349976, 831.659973] # Numeric
When using linear regression we did $h_Θ(x) = (Θ^TX)$
But start with binary classification, Y is only 0 or 1
So we need new funtion
import tensorflow as tf
hypothesis = tf.sigmoid(z) # z=tf.matmul(X, Θ) + b
hypothesis = tf.div(1., 1. + tf.exp(z))