摘要:
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... 阅读全文
摘要:
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_... 阅读全文