(y, y_)
| 34 | |
| 35 | |
| 36 | def acc(y, y_): |
| 37 | correct_prediction = tf.equal(tf.argmax(y, 1), tf.convert_to_tensor(y_, tf.int64)) |
| 38 | return tf.reduce_mean(tf.cast(correct_prediction, tf.float32)) |
| 39 | |
| 40 | |
| 41 | # define the optimizer |
no outgoing calls
no test coverage detected