摘要:
def add_layer(inputs, in_size, out_size, activation_function=None): # add one more layer and return the output of this layer Weights = tf.Variable(tf.random_normal([in_size, out_size])) b... 阅读全文
posted @ 2017-09-20 09:26
otwos
阅读(341)
评论(0)
推荐(0)
摘要:
1 def compute_accuracy(v_xs, v_ys): 2 global prediction 3 y_pre = sess.run(prediction, feed_dict={xs: v_xs, keep_prob: 1}) 4 correct_prediction = tf.equal(tf.argmax(y_pre,1), tf.argmax(v_... 阅读全文
posted @ 2017-09-20 09:24
otwos
阅读(6833)
评论(0)
推荐(1)

浙公网安备 33010602011771号