Guest User

Untitled

a guest
Jul 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #Calculating the L2 loss
  2. val = tf.square(Y_truth - Y_pred)
  3. L2_val = sess.run(val)
  4.  
  5. #ploting the predicted values against the L2 loss
  6. Y_array = sess.run(Y_pred)
  7. plt.plot(Y_array, L2_val, 'b-', label='L2 loss' )
  8. plt.title('L2 loss')
  9. plt.xlabel('$Y_{pred}$', fontsize=15)
  10. plt.ylabel('$Y_{true}$', fontsize=15)
Add Comment
Please, Sign In to add comment