Skip to content

Instantly share code, notes, and snippets.

@risenW
Last active July 17, 2018 11:40
Show Gist options
  • Save risenW/78eaa55648dc77f1fa6f664105e495db to your computer and use it in GitHub Desktop.
Save risenW/78eaa55648dc77f1fa6f664105e495db to your computer and use it in GitHub Desktop.
Imports for loss function tutorial on mediumi
# Import libraries
import matplotlib.pyplot as plt
import tensorflow as tf
#Start a tensorflow session
sess = tf.Session()
# Create our sample data from a line space
Y_pred = tf.linspace(-1., 1., 500)
#Create our target as a zero constant tensor
Y_truth = tf.constant(0.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment