Skip to content

Commit

Permalink
update MNIST test size
Browse files Browse the repository at this point in the history
  • Loading branch information
leejaymin committed Feb 5, 2017
1 parent 66b971b commit 7e88944
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 200 deletions.
160 changes: 87 additions & 73 deletions 0.1.Fundamental_Neural_Network/ex4/ex4_jemin.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 0.1.Fundamental_Neural_Network/ex4/example_fmin_cg.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"metadata": {
"collapsed": true
},
Expand Down
123 changes: 104 additions & 19 deletions 0.2.Basic/Basic Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"metadata": {
"collapsed": true
},
Expand All @@ -22,7 +22,41 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 6,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"hello = tf.constant('Hello, TensorFlow!')\n",
"sess = tf.Session()"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"<tensorflow.python.client.session.Session at 0x7fb3b4b51ac8>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sess"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
Expand All @@ -36,11 +70,31 @@
}
],
"source": [
"hello = tf.constant('Hello, TensorFlow!')\n",
"sess = tf.Session()\n",
"print(sess.run(hello))"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"<tf.Tensor 'Const_1:0' shape=() dtype=string>"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"hello"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -51,17 +105,20 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[array([[ 12.]], dtype=float32)]\n"
]
"data": {
"text/plain": [
"<tf.Tensor 'MatMul:0' shape=(1, 1) dtype=float32>"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
Expand All @@ -79,7 +136,25 @@
"# The returned value, 'product', represents the result of the matrix\n",
"# multiplication.\n",
"product = tf.matmul(matrix1, matrix2)\n",
"\n",
"product"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[array([[ 12.]], dtype=float32)]\n"
]
}
],
"source": [
"# Launch the default graph.\n",
"sess = tf.Session()\n",
"\n",
Expand Down Expand Up @@ -145,14 +220,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"## Placeholder\n",
"\n",
"- 추후에 값을 `feed_dict`를 이용해서 session을 실행할 때 전달 할 수 있다."
]
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -246,7 +322,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 13,
"metadata": {
"collapsed": false
},
Expand All @@ -259,12 +335,12 @@
"epoch 10, output: 0.47898948192596436\n",
"epoch 20, output: 0.2867887020111084\n",
"epoch 30, output: 0.17171096801757812\n",
"epoch 40, output: 0.10280969738960266\n",
"epoch 50, output: 0.06155595928430557\n",
"epoch 60, output: 0.036855824291706085\n",
"epoch 70, output: 0.022066941484808922\n",
"epoch 80, output: 0.01321229338645935\n",
"epoch 90, output: 0.007910688407719135\n"
"epoch 40, output: 0.10280970484018326\n",
"epoch 50, output: 0.06155596673488617\n",
"epoch 60, output: 0.03685583174228668\n",
"epoch 70, output: 0.02206694707274437\n",
"epoch 80, output: 0.013212298974394798\n",
"epoch 90, output: 0.007910690270364285\n"
]
}
],
Expand All @@ -289,6 +365,15 @@
" print(\"epoch {}, output: {}\".format(i, sess.run(y)))\n",
" sess.run(train_step)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 7e88944

Please sign in to comment.