predict_op = tf.argmax(py_x, 1)
Goal 1: Minimizing the probability of mistake (argmax is doing this) Goal 2: minimizing the expected loss (training based on a cost function is doing this) See: http://classes.engr.oregonstate.edu/eecs/spring2013/cs534/notes/Logistic-Regression-4.pdf