Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdamien committed Nov 18, 2015
1 parent 4fbed84 commit 3f7255a
Show file tree
Hide file tree
Showing 11 changed files with 807 additions and 57 deletions.
486 changes: 486 additions & 0 deletions Setup_TensorFlow.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/3 - Neural Networks/alexnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def alex_net(_X, _weights, _biases, _dropout):
acc = sess.run(accuracy, feed_dict={x: batch_xs, y: batch_ys, keep_prob: 1.})
# Calculate batch loss
loss = sess.run(cost, feed_dict={x: batch_xs, y: batch_ys, keep_prob: 1.})
print "Iter " + str(step*batch_size) + ", Loss= " + "{:.6f}".format(loss) + ", Training Accuracy= " + "{:.5f}".format(acc)
print "Iter " + str(step*batch_size) + ", Minibatch Loss= " + "{:.6f}".format(loss) + ", Training Accuracy= " + "{:.5f}".format(acc)
step += 1
print "Optimization Finished!"
# Calculate accuracy for 256 mnist test images
Expand Down
2 changes: 1 addition & 1 deletion examples/3 - Neural Networks/convolutional_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def conv_net(_X, _weights, _biases, _dropout):
acc = sess.run(accuracy, feed_dict={x: batch_xs, y: batch_ys, keep_prob: 1.})
# Calculate batch loss
loss = sess.run(cost, feed_dict={x: batch_xs, y: batch_ys, keep_prob: 1.})
print "Iter " + str(step*batch_size) + ", Loss= " + "{:.6f}".format(loss) + ", Training Accuracy= " + "{:.5f}".format(acc)
print "Iter " + str(step*batch_size) + ", Minibatch Loss= " + "{:.6f}".format(loss) + ", Training Accuracy= " + "{:.5f}".format(acc)
step += 1
print "Optimization Finished!"
# Calculate accuracy for 256 mnist test images
Expand Down
2 changes: 1 addition & 1 deletion examples/3 - Neural Networks/multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
batch_size = 100
display_step = 1

#Network Parameters
# Network Parameters
n_hidden_1 = 256 # 1st layer num features
n_hidden_2 = 256 # 2nd layer num features
n_input = 784 # MNIST data input (img shape: 28*28)
Expand Down
9 changes: 0 additions & 9 deletions notebooks/1 - Introduction/basic_operations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,6 @@
" print result\n",
" # ==> [[ 12.]]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
9 changes: 0 additions & 9 deletions notebooks/1 - Introduction/helloworld.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@
"# Run graph\n",
"print sess.run(hello)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
9 changes: 0 additions & 9 deletions notebooks/2 - Basic Classifiers/linear_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,6 @@
"from IPython.display import Image\n",
"Image(filename='linearreg.png')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
9 changes: 0 additions & 9 deletions notebooks/2 - Basic Classifiers/logistic_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,6 @@
" accuracy = tf.reduce_mean(tf.cast(correct_prediction, \"float\"))\n",
" print \"Accuracy:\", accuracy.eval({x: mnist.test.images, y: mnist.test.labels})"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
9 changes: 0 additions & 9 deletions notebooks/2 - Basic Classifiers/nearest_neighbor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,6 @@
" print \"Done!\"\n",
" print \"Accuracy:\", accuracy"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 3f7255a

Please sign in to comment.