Wykład 4 - poprawka kodu

This commit is contained in:
Paweł Skórzewski 2021-06-07 14:50:30 +02:00
parent 521f094802
commit 7e85e342ae

View File

@ -2480,7 +2480,7 @@
"y_train = keras.utils.to_categorical(y_train, num_classes)\n", "y_train = keras.utils.to_categorical(y_train, num_classes)\n",
"y_test = keras.utils.to_categorical(y_test, num_classes)\n", "y_test = keras.utils.to_categorical(y_test, num_classes)\n",
"\n", "\n",
"model3 = Sequential()\n", "model3 = keras.Sequential()\n",
"model3.add(Dense(2500, activation='tanh', input_shape=(784,)))\n", "model3.add(Dense(2500, activation='tanh', input_shape=(784,)))\n",
"model3.add(Dense(2000, activation='tanh'))\n", "model3.add(Dense(2000, activation='tanh'))\n",
"model3.add(Dense(1500, activation='tanh'))\n", "model3.add(Dense(1500, activation='tanh'))\n",
@ -2868,7 +2868,7 @@
} }
], ],
"source": [ "source": [
"model5 = Sequential()\n", "model5 = keras.Sequential()\n",
"model5.add(Dense(4, activation='tanh', input_shape=(4,)))\n", "model5.add(Dense(4, activation='tanh', input_shape=(4,)))\n",
"model5.add(Dense(4, activation='tanh'))\n", "model5.add(Dense(4, activation='tanh'))\n",
"model5.add(Dense(8, activation='relu'))\n", "model5.add(Dense(8, activation='relu'))\n",
@ -3058,7 +3058,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.8.5" "version": "3.8.3"
}, },
"livereveal": { "livereveal": {
"start_slideshow_at": "selected", "start_slideshow_at": "selected",