Guest User

Untitled

a guest
Jul 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #Plot of the Pseudo-Huber loss
  2. delta = tf.constant(0.24)
  3. temp_ph = tf.multiply(tf.square(delta),tf.sqrt(1. + tf.square((Y_truth - Y_pred) / delta)) - 1. )
  4. pseudo_h_vals = sess.run(temp_ph)
  5. #ploting the predicted values against the L2 loss
  6. Y_array = sess.run(Y_pred)
  7. plt.plot(Y_array, pseudo_h_vals, 'g-' )
  8. plt.title('Pseudo Huber loss')
  9. plt.xlabel('$Y_{pred}$', fontsize=15)
  10. plt.ylabel('$Y_{true}$', fontsize=15)
Add Comment
Please, Sign In to add comment