diff --git "a/1\357\274\214kerasmodel_example.ipynb" "b/1\357\274\214kerasmodel_example.ipynb"
index 69693dd..659ea9b 100644
--- "a/1\357\274\214kerasmodel_example.ipynb"
+++ "b/1\357\274\214kerasmodel_example.ipynb"
@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": 1,
"id": "3e915b9b",
"metadata": {},
"outputs": [],
@@ -32,7 +32,7 @@
},
{
"cell_type": "code",
- "execution_count": 9,
+ "execution_count": 2,
"id": "a1920bc7",
"metadata": {},
"outputs": [],
@@ -47,14 +47,6 @@
"import torchkeras #Attention this line \n"
]
},
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "101cd9c3-5061-450e-a022-df09afed935e",
- "metadata": {},
- "outputs": [],
- "source": []
- },
{
"cell_type": "markdown",
"id": "e73ca619",
@@ -65,113 +57,10 @@
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": null,
"id": "25ab4939",
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz\n",
- "Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to mnist/MNIST/raw/train-images-idx3-ubyte.gz\n"
- ]
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "383bed3915db4058b97803e6ce7dfb56",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- " 0%| | 0/9912422 [00:00, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Extracting mnist/MNIST/raw/train-images-idx3-ubyte.gz to mnist/MNIST/raw\n",
- "\n",
- "Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz\n",
- "Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz to mnist/MNIST/raw/train-labels-idx1-ubyte.gz\n"
- ]
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "70c709ebd2a240d48925fcda12d69f90",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- " 0%| | 0/28881 [00:00, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Extracting mnist/MNIST/raw/train-labels-idx1-ubyte.gz to mnist/MNIST/raw\n",
- "\n",
- "Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz\n",
- "Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz to mnist/MNIST/raw/t10k-images-idx3-ubyte.gz\n"
- ]
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "8d3113535c5140faa9429a5610fd9d6d",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- " 0%| | 0/1648877 [00:00, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Extracting mnist/MNIST/raw/t10k-images-idx3-ubyte.gz to mnist/MNIST/raw\n",
- "\n",
- "Downloading http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz\n",
- "Downloading http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz to mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz\n"
- ]
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "0a09d8adfcaf4c029409f779e3231d3f",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- " 0%| | 0/4542 [00:00, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Extracting mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz to mnist/MNIST/raw\n",
- "\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"import torchvision \n",
"from torchvision import transforms\n",
@@ -185,19 +74,10 @@
},
{
"cell_type": "code",
- "execution_count": 11,
+ "execution_count": null,
"id": "85a45abd",
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "torch.Size([128, 1, 28, 28])\n",
- "torch.Size([128])\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"for features,labels in dl_train:\n",
" break\n",
@@ -207,817 +87,10 @@
},
{
"cell_type": "code",
- "execution_count": 12,
+ "execution_count": null,
"id": "c484c0b4",
"metadata": {},
- "outputs": [
- {
- "data": {
- "image/svg+xml": [
- "\n",
- "\n",
- "\n"
- ],
- "text/plain": [
- "