Commit 26290cab authored by Mark Daoust's avatar Mark Daoust
Browse files

Stub moved notebooks.

These have all moved to https://github.com/tensorflow/docs/tree/master/site/en
parent b4cd5f5c
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
"colab": { "colab": {
"name": "_index.ipynb", "name": "_index.ipynb",
"version": "0.3.2", "version": "0.3.2",
"views": {},
"default_view": {},
"provenance": [] "provenance": []
} }
}, },
...@@ -27,12 +25,7 @@ ...@@ -27,12 +25,7 @@
"metadata": { "metadata": {
"id": "BZSlp3DAjdYf", "id": "BZSlp3DAjdYf",
"colab_type": "code", "colab_type": "code",
"colab": { "colab": {},
"autoexec": {
"startup": false,
"wait_interval": 0
}
},
"cellView": "form" "cellView": "form"
}, },
"cell_type": "code", "cell_type": "code",
...@@ -64,159 +57,26 @@ ...@@ -64,159 +57,26 @@
}, },
{ {
"metadata": { "metadata": {
"id": "DUNzJc4jTj6G", "id": "AMrQVn--Aj1j",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/models/blob/master/samples/core/get_started/_index.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /><span>Run in Google Colab</span></a> \n",
"</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/tensorflow/models/blob/master/samples/core/get_started/_index.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /><span>View source on GitHub</span></a></td></table>"
]
},
{
"metadata": {
"id": "hiH7AC-NTniF",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"This is a [Google Colaboratory](https://colab.research.google.com/notebooks/welcome.ipynb) notebook file. Python programs are run directly in the browser—a great way to learn and use TensorFlow. To run the Colab notebook:\n",
"\n",
"1. Connect to a Python runtime: At the top-right of the menu bar, select *CONNECT*.\n",
"2. Run all the notebook code cells: Select *Runtime* > *Run all*.\n",
"\n",
"For more examples and guides (including details for this program), see [Get Started with TensorFlow](https://www.tensorflow.org/get_started/).\n",
"\n",
"Let's get started, import the TensorFlow library into your program:"
]
},
{
"metadata": {
"id": "0trJmd6DjqBZ",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
"cell_type": "code",
"source": [
"import tensorflow as tf"
],
"execution_count": 0,
"outputs": []
},
{
"metadata": {
"id": "7NAbSZiaoJ4z",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"Load and prepare the [MNIST](http://yann.lecun.com/exdb/mnist/) dataset. Convert the samples from integers to floating-point numbers:"
]
},
{
"metadata": {
"id": "7FP5258xjs-v",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
"cell_type": "code",
"source": [
"mnist = tf.keras.datasets.mnist\n",
"\n",
"(x_train, y_train), (x_test, y_test) = mnist.load_data()\n",
"x_train, x_test = x_train / 255.0, x_test / 255.0"
],
"execution_count": 0,
"outputs": []
},
{
"metadata": {
"id": "BPZ68wASog_I",
"colab_type": "text" "colab_type": "text"
}, },
"cell_type": "markdown", "cell_type": "markdown",
"source": [ "source": [
"Build the `tf.keras` model by stacking layers. Select an optimizer and loss function used for training:" "This file has moved."
] ]
}, },
{ {
"metadata": { "metadata": {
"id": "h3IKyzTCDNGo", "id": "DUNzJc4jTj6G",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
"cell_type": "code",
"source": [
"model = tf.keras.models.Sequential([\n",
" tf.keras.layers.Flatten(),\n",
" tf.keras.layers.Dense(512, activation=tf.nn.relu),\n",
" tf.keras.layers.Dropout(0.2),\n",
" tf.keras.layers.Dense(10, activation=tf.nn.softmax)\n",
"])\n",
"\n",
"model.compile(optimizer='adam',\n",
" loss='sparse_categorical_crossentropy',\n",
" metrics=['accuracy'])"
],
"execution_count": 0,
"outputs": []
},
{
"metadata": {
"id": "ix4mEL65on-w",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"Train and evaluate model:"
]
},
{
"metadata": {
"id": "F7dTAzgHDUh7",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
"cell_type": "code",
"source": [
"model.fit(x_train, y_train, epochs=5)\n",
"\n",
"model.evaluate(x_test, y_test)"
],
"execution_count": 0,
"outputs": []
},
{
"metadata": {
"id": "T4JfEh7kvx6m",
"colab_type": "text" "colab_type": "text"
}, },
"cell_type": "markdown", "cell_type": "markdown",
"source": [ "source": [
"You’ve now trained an image classifier with ~98% accuracy on this dataset. See [Get Started with TensorFlow](https://www.tensorflow.org/get_started/) to learn more." "<table class=\"tfo-notebook-buttons\" align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/_index.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /><span>Run in Google Colab</span></a> \n",
"</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/tensorflow/docs/blob/master/site/en/tutorials/_index.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /><span>View source on GitHub</span></a></td></table>"
] ]
} }
] ]
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
"colab": { "colab": {
"name": "Custom training: walkthrough", "name": "Custom training: walkthrough",
"version": "0.3.2", "version": "0.3.2",
"views": {},
"default_view": {},
"provenance": [] "provenance": []
} }
}, },
...@@ -27,12 +25,7 @@ ...@@ -27,12 +25,7 @@
"metadata": { "metadata": {
"id": "BZSlp3DAjdYf", "id": "BZSlp3DAjdYf",
"colab_type": "code", "colab_type": "code",
"colab": { "colab": {},
"autoexec": {
"startup": false,
"wait_interval": 0
}
},
"cellView": "form" "cellView": "form"
}, },
"cell_type": "code", "cell_type": "code",
...@@ -70,10 +63,10 @@ ...@@ -70,10 +63,10 @@
"cell_type": "markdown", "cell_type": "markdown",
"source": [ "source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\"><td>\n", "<table class=\"tfo-notebook-buttons\" align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/models/blob/master/samples/core/tutorials/eager/custom_training_walkthrough.ipynb\">\n", "<a target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/eager/custom_training_walkthrough.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /><span>Run in Google Colab</span></a> \n", " <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /><span>Run in Google Colab</span></a> \n",
"</td><td>\n", "</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/tensorflow/models/blob/master/samples/core/tutorials/eager/custom_training_walkthrough.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /><span>View source on GitHub</span></a></td></table>" "<a target=\"_blank\" href=\"https://github.com/tensorflow/docs/blob/master/site/en/tutorials/eager/custom_training_walkthrough.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /><span>View source on GitHub</span></a></td></table>"
] ]
}, },
{ {
...@@ -87,4 +80,4 @@ ...@@ -87,4 +80,4 @@
] ]
} }
] ]
} }
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment