Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Computing L1 loss with same values
- #Calculating the L2 loss
- temp = tf.abs(Y_truth - Y_pred)
- L1_val = sess.run(temp)
- #ploting the predicted values against the L2 loss
- Y_array = sess.run(Y_pred)
- plt.plot(Y_array, L1_val, 'r-' )
- plt.title('L1 loss')
- plt.xlabel('$Y_{pred}$', fontsize=15)
- plt.ylabel('$Y_{true}$', fontsize=15)
Add Comment
Please, Sign In to add comment