初心者から深い学習者まで。 gogoelテンソルフローのMNIST_SOFTMAX.pyチュートリアル(https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/mnist/mnist_softmax.py)を使用して、何が起こるかを確認するために2つの新しいレイヤーを追加しました。テンソルフローへのレイヤ数の追加MNISTチュートリアルで精度低下の原因となる
x = tf.placeholder(tf.float32, [None, 784])
W1 = tf.Variable(tf.zeros([784, 256]))
W2 = tf.Variable(tf.zeros([256, 256]))
W3 = tf.Variable(tf.zeros([256, 10]))
B1 = tf.Variable(tf.zeros([256]))
B2 = tf.Variable(tf.zeros([256]))
B3 = tf.Variable(tf.zeros([10]))
Y1 = tf.matmul(x, W1) + B1
Y2 = tf.matmul(Y1, W2) + B2
Y3 = tf.matmul(Y2, W3) + B3
y = Y3
に上記変更されたコードが0.9188から0.1028まで精度を低下
x = tf.placeholder(tf.float32, [None, 784])
W = tf.Variable(tf.zeros([784, 10]))
b = tf.Variable(tf.zeros([10]))
y = tf.matmul(x, W) + b
。なぜそれが落ちるのか、いくつか考えられますか?
おそらく関連しています:[隠された層のないニューラルネットがない場合](http://stats.stackexchange.com/questions/181771/neural-net-with-hidden-layer-performing-worse-than-without) – blacksite
完全なコードをどこかに投稿できますか?私はあなたがどのように訓練をしているのか見たいと思います。確率的勾配降下? –
のコードhttps://github.com/jeongsoopark/MachineLearning/blob/master/mnist_softmax.py テンソルフローのデフォルトのMNIST_softmax.py – jspark