Last active
July 17, 2018 11:40
-
-
Save risenW/78eaa55648dc77f1fa6f664105e495db to your computer and use it in GitHub Desktop.
Imports for loss function tutorial on mediumi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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