Guest User

Untitled

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