Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
2756d49a
Commit
2756d49a
authored
Jun 19, 2018
by
Mark Daoust
Browse files
fix-links, switch to TensoFlow activations.
parent
ef727e2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
170 deletions
+44
-170
samples/core/get_started/basic_classification.ipynb
samples/core/get_started/basic_classification.ipynb
+44
-170
No files found.
samples/core/get_started/basic_classification.ipynb
View file @
2756d49a
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
"colab": {
"colab": {
"name": "basic_classification.ipynb",
"name": "basic_classification.ipynb",
"version": "0.3.2",
"version": "0.3.2",
"views": {},
"default_view": {},
"provenance": [],
"provenance": [],
"private_outputs": true,
"private_outputs": true,
"collapsed_sections": [],
"collapsed_sections": [],
...
@@ -32,13 +30,7 @@
...
@@ -32,13 +30,7 @@
"metadata": {
"metadata": {
"id": "_ckMIh7O7s6D",
"id": "_ckMIh7O7s6D",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
},
"cellView": "form"
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -61,13 +53,7 @@
...
@@ -61,13 +53,7 @@
"metadata": {
"metadata": {
"id": "vasWnqRgy1H4",
"id": "vasWnqRgy1H4",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
},
"cellView": "form"
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -114,10 +100,10 @@
...
@@ -114,10 +100,10 @@
"cell_type": "markdown",
"cell_type": "markdown",
"source": [
"source": [
"<table align=\"left\"><td>\n",
"<table align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"https://colab.sandbox.google.com/github/tensorflow/models/blob/master/samples/core/get_started/basic
-
classification.ipynb\">\n",
"<a target=\"_blank\" href=\"https://colab.sandbox.google.com/github/tensorflow/models/blob/master/samples/core/get_started/basic
_
classification.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a> \n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a> \n",
"</td><td>\n",
"</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/tensorflow/models/blob/master/samples/core/get_started/basic
-
classification.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on Github</a></td></table>\n"
"<a target=\"_blank\" href=\"https://github.com/tensorflow/models/blob/master/samples/core/get_started/basic
_
classification.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on Github</a></td></table>\n"
]
]
},
},
{
{
...
@@ -136,12 +122,7 @@
...
@@ -136,12 +122,7 @@
"metadata": {
"metadata": {
"id": "dzLKpmZICaWN",
"id": "dzLKpmZICaWN",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -198,12 +179,7 @@
...
@@ -198,12 +179,7 @@
"metadata": {
"metadata": {
"id": "7MqDQO0KCaWS",
"id": "7MqDQO0KCaWS",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -282,12 +258,7 @@
...
@@ -282,12 +258,7 @@
"metadata": {
"metadata": {
"id": "IjnLH5S2CaWx",
"id": "IjnLH5S2CaWx",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -313,12 +284,7 @@
...
@@ -313,12 +284,7 @@
"metadata": {
"metadata": {
"id": "zW5k_xz1CaWX",
"id": "zW5k_xz1CaWX",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -341,12 +307,7 @@
...
@@ -341,12 +307,7 @@
"metadata": {
"metadata": {
"id": "TRFYHB2mCaWb",
"id": "TRFYHB2mCaWb",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -369,12 +330,7 @@
...
@@ -369,12 +330,7 @@
"metadata": {
"metadata": {
"id": "XKnCTHz4CaWg",
"id": "XKnCTHz4CaWg",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -397,12 +353,7 @@
...
@@ -397,12 +353,7 @@
"metadata": {
"metadata": {
"id": "2KFnYlcwCaWl",
"id": "2KFnYlcwCaWl",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -425,12 +376,7 @@
...
@@ -425,12 +376,7 @@
"metadata": {
"metadata": {
"id": "iJmPr5-ACaWn",
"id": "iJmPr5-ACaWn",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -455,12 +401,7 @@
...
@@ -455,12 +401,7 @@
"metadata": {
"metadata": {
"id": "m4VEw8Ud9Quh",
"id": "m4VEw8Ud9Quh",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -486,12 +427,7 @@
...
@@ -486,12 +427,7 @@
"metadata": {
"metadata": {
"id": "DSD9qKcqCaWs",
"id": "DSD9qKcqCaWs",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -517,12 +453,7 @@
...
@@ -517,12 +453,7 @@
"metadata": {
"metadata": {
"id": "bW5WzIPlCaWv",
"id": "bW5WzIPlCaWv",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -547,12 +478,7 @@
...
@@ -547,12 +478,7 @@
"metadata": {
"metadata": {
"id": "oZTImqg_CaW1",
"id": "oZTImqg_CaW1",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -601,19 +527,14 @@
...
@@ -601,19 +527,14 @@
"metadata": {
"metadata": {
"id": "9ODch-OFCaW4",
"id": "9ODch-OFCaW4",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
"model = keras.Sequential([\n",
"model = keras.Sequential([\n",
" keras.layers.Flatten(input_shape=(28, 28)),\n",
" keras.layers.Flatten(input_shape=(28, 28)),\n",
" keras.layers.Dense(128, activation=
'
relu
'
),\n",
" keras.layers.Dense(128, activation=
tf.nn.
relu),\n",
" keras.layers.Dense(10, activation=
'
softmax
'
)\n",
" keras.layers.Dense(10, activation=
tf.nn.
softmax)\n",
"])"
"])"
],
],
"execution_count": 0,
"execution_count": 0,
...
@@ -643,12 +564,7 @@
...
@@ -643,12 +564,7 @@
"metadata": {
"metadata": {
"id": "Lhan11blCaW7",
"id": "Lhan11blCaW7",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -681,12 +597,7 @@
...
@@ -681,12 +597,7 @@
"metadata": {
"metadata": {
"id": "xvwvpA64CaW_",
"id": "xvwvpA64CaW_",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -721,12 +632,7 @@
...
@@ -721,12 +632,7 @@
"metadata": {
"metadata": {
"id": "VflXLEeECaXC",
"id": "VflXLEeECaXC",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -763,12 +669,7 @@
...
@@ -763,12 +669,7 @@
"metadata": {
"metadata": {
"id": "Gl91RPhdCaXI",
"id": "Gl91RPhdCaXI",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -791,12 +692,7 @@
...
@@ -791,12 +692,7 @@
"metadata": {
"metadata": {
"id": "3DmJEUinCaXK",
"id": "3DmJEUinCaXK",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -819,12 +715,7 @@
...
@@ -819,12 +715,7 @@
"metadata": {
"metadata": {
"id": "qsqenuPnCaXO",
"id": "qsqenuPnCaXO",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -847,12 +738,7 @@
...
@@ -847,12 +738,7 @@
"metadata": {
"metadata": {
"id": "Sd7Pgsu6CaXP",
"id": "Sd7Pgsu6CaXP",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -875,12 +761,7 @@
...
@@ -875,12 +761,7 @@
"metadata": {
"metadata": {
"id": "YGBDAiziCaXR",
"id": "YGBDAiziCaXR",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -921,12 +802,7 @@
...
@@ -921,12 +802,7 @@
"metadata": {
"metadata": {
"id": "yRJ7JU7JCaXT",
"id": "yRJ7JU7JCaXT",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -952,12 +828,7 @@
...
@@ -952,12 +828,7 @@
"metadata": {
"metadata": {
"id": "lDFh5yF_CaXW",
"id": "lDFh5yF_CaXW",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -983,12 +854,7 @@
...
@@ -983,12 +854,7 @@
"metadata": {
"metadata": {
"id": "o_rzNSdrCaXY",
"id": "o_rzNSdrCaXY",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -1013,12 +879,7 @@
...
@@ -1013,12 +879,7 @@
"metadata": {
"metadata": {
"id": "2tRmdq_8CaXb",
"id": "2tRmdq_8CaXb",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
...
@@ -1038,6 +899,19 @@
...
@@ -1038,6 +899,19 @@
"source": [
"source": [
"And, as before, the model predicts a label of 9."
"And, as before, the model predicts a label of 9."
]
]
},
{
"metadata": {
"id": "fzHAx2M99WCd",
"colab_type": "code",
"colab": {}
},
"cell_type": "code",
"source": [
""
],
"execution_count": 0,
"outputs": []
}
}
]
]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment