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