December 2017
Intermediate to advanced
536 pages
14h 23m
English
Let us now see how to proceed with the recipe:
# Placeholder for the Training DataX = tf.placeholder(tf.float32, name='X')Y = tf.placeholder(tf.float32, name='Y')# Variables for coefficients initialized to 0w0 = tf.Variable(0.0)w1 = tf.Variable(0.0)# The Linear Regression ModelY_hat = X*w1 + w0# Loss functionloss = tf.square(Y - Y_hat, name=’loss’)
# Placeholder ...
Read now
Unlock full access