摘要: 计算accuracy的代码 # 计算准确率,是拿输出的结果比对一下corre_boolean = tf.equal(tf.argmax(hyp,1),tf.argmax(py,1))accu = tf.reduce_mean(tf.cast(corre_boolean,'float'))print( 阅读全文
posted @ 2017-07-29 11:05 烧鸭饭真好吃 阅读(199) 评论(0) 推荐(0) 编辑