new
This commit is contained in:
parent
2fdf4bd10e
commit
659e17494c
419
solution.ipynb
419
solution.ipynb
@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 35,
|
||||
"execution_count": 295,
|
||||
"id": "ddcaf12b",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -26,7 +26,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 36,
|
||||
"execution_count": 296,
|
||||
"id": "70e3b6e3",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -36,7 +36,7 @@
|
||||
"8760"
|
||||
]
|
||||
},
|
||||
"execution_count": 36,
|
||||
"execution_count": 296,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -50,7 +50,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 37,
|
||||
"execution_count": 297,
|
||||
"id": "44f404d6",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -60,7 +60,7 @@
|
||||
"720"
|
||||
]
|
||||
},
|
||||
"execution_count": 37,
|
||||
"execution_count": 297,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -72,7 +72,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 38,
|
||||
"execution_count": 298,
|
||||
"id": "c760402a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -82,7 +82,7 @@
|
||||
"9480"
|
||||
]
|
||||
},
|
||||
"execution_count": 38,
|
||||
"execution_count": 298,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -94,7 +94,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 39,
|
||||
"execution_count": 299,
|
||||
"id": "06f39e15",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -104,7 +104,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 40,
|
||||
"execution_count": 300,
|
||||
"id": "91c047f6",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -491,7 +491,7 @@
|
||||
"[9480 rows x 73 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 40,
|
||||
"execution_count": 300,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -503,7 +503,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 41,
|
||||
"execution_count": 301,
|
||||
"id": "037f1315",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -513,7 +513,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 42,
|
||||
"execution_count": 302,
|
||||
"id": "e03bae07",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -900,7 +900,7 @@
|
||||
"[8760 rows x 73 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 42,
|
||||
"execution_count": 302,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -911,7 +911,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 43,
|
||||
"execution_count": 303,
|
||||
"id": "ede98181",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -1006,7 +1006,7 @@
|
||||
"[8760 rows x 1 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 43,
|
||||
"execution_count": 303,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -1019,17 +1019,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 44,
|
||||
"execution_count": 304,
|
||||
"id": "9a950571",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Define model\n",
|
||||
"model = Sequential()\n",
|
||||
"#model.add(Dense(16, input_dim=73, activation= \"relu\"))\n",
|
||||
"#model.add(Dense(32, activation= \"relu\"))\n",
|
||||
"#model.add(Dense(64, activation= \"relu\"))\n",
|
||||
"model.add(Dense(128,input_dim=73, activation= \"relu\"))\n",
|
||||
"model.add(Dense(1024, input_dim=73, activation= \"relu\"))\n",
|
||||
"model.add(Dense(512, activation= \"relu\"))\n",
|
||||
"model.add(Dense(256, activation= \"relu\"))\n",
|
||||
"model.add(Dense(128, activation= \"relu\"))\n",
|
||||
"model.add(Dense(64, activation= \"relu\"))\n",
|
||||
"model.add(Dense(32, activation= \"relu\"))\n",
|
||||
"model.add(Dense(16, activation= \"relu\"))\n",
|
||||
@ -1039,7 +1039,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 45,
|
||||
"execution_count": 305,
|
||||
"id": "f68e43f9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -1051,7 +1051,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 46,
|
||||
"execution_count": 306,
|
||||
"id": "c1036c04",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -1061,7 +1061,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 47,
|
||||
"execution_count": 307,
|
||||
"id": "cec44474",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -1071,20 +1071,23 @@
|
||||
"text": [
|
||||
"(None, 73) <dtype: 'float32'>\n",
|
||||
"(None, 1) <dtype: 'float32'>\n",
|
||||
"dense_13 (None, 73) float32\n",
|
||||
"dense_14 (None, 128) float32\n",
|
||||
"dense_15 (None, 64) float32\n",
|
||||
"dense_16 (None, 32) float32\n",
|
||||
"dense_17 (None, 16) float32\n"
|
||||
"dense_95 (None, 73) float32\n",
|
||||
"dense_96 (None, 1024) float32\n",
|
||||
"dense_97 (None, 512) float32\n",
|
||||
"dense_98 (None, 256) float32\n",
|
||||
"dense_99 (None, 128) float32\n",
|
||||
"dense_100 (None, 64) float32\n",
|
||||
"dense_101 (None, 32) float32\n",
|
||||
"dense_102 (None, 16) float32\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"[None, None, None, None, None]"
|
||||
"[None, None, None, None, None, None, None, None]"
|
||||
]
|
||||
},
|
||||
"execution_count": 47,
|
||||
"execution_count": 307,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -1097,7 +1100,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 48,
|
||||
"execution_count": 308,
|
||||
"id": "eb9cb318",
|
||||
"metadata": {
|
||||
"scrolled": true
|
||||
@ -1107,160 +1110,240 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Epoch 1/60\n",
|
||||
"274/274 [==============================] - 1s 1ms/step - loss: 1591.3160 - mean_squared_error: 1591.3160\n",
|
||||
"Epoch 2/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 937.6966 - mean_squared_error: 937.6966\n",
|
||||
"Epoch 3/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 885.1689 - mean_squared_error: 885.1689\n",
|
||||
"Epoch 4/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 803.5897 - mean_squared_error: 803.5897\n",
|
||||
"Epoch 5/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 686.9089 - mean_squared_error: 686.9089\n",
|
||||
"Epoch 6/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 583.9525 - mean_squared_error: 583.9525\n",
|
||||
"Epoch 7/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 518.3331 - mean_squared_error: 518.3331\n",
|
||||
"Epoch 8/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 477.7906 - mean_squared_error: 477.7906\n",
|
||||
"Epoch 9/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 446.8395 - mean_squared_error: 446.8395\n",
|
||||
"Epoch 10/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 420.2437 - mean_squared_error: 420.2437\n",
|
||||
"Epoch 11/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 401.8218 - mean_squared_error: 401.8218\n",
|
||||
"Epoch 12/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 384.3383 - mean_squared_error: 384.3383\n",
|
||||
"Epoch 13/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 363.4060 - mean_squared_error: 363.4060\n",
|
||||
"Epoch 14/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 345.5817 - mean_squared_error: 345.5817\n",
|
||||
"Epoch 15/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 332.1534 - mean_squared_error: 332.1534\n",
|
||||
"Epoch 16/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 313.5759 - mean_squared_error: 313.5759\n",
|
||||
"Epoch 17/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 297.7942 - mean_squared_error: 297.7942\n",
|
||||
"Epoch 18/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 281.8712 - mean_squared_error: 281.8712\n",
|
||||
"Epoch 19/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 268.7486 - mean_squared_error: 268.7486\n",
|
||||
"Epoch 20/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 251.2501 - mean_squared_error: 251.2501\n",
|
||||
"Epoch 21/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 248.3035 - mean_squared_error: 248.3035\n",
|
||||
"Epoch 22/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 227.5490 - mean_squared_error: 227.5490\n",
|
||||
"Epoch 23/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 212.7673 - mean_squared_error: 212.7673\n",
|
||||
"Epoch 24/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 203.8420 - mean_squared_error: 203.8420\n",
|
||||
"Epoch 25/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 196.8168 - mean_squared_error: 196.8168\n",
|
||||
"Epoch 26/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 177.4812 - mean_squared_error: 177.4812\n",
|
||||
"Epoch 27/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 168.7412 - mean_squared_error: 168.7412\n",
|
||||
"Epoch 28/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 160.3402 - mean_squared_error: 160.3402\n",
|
||||
"Epoch 29/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 149.0066 - mean_squared_error: 149.0066\n",
|
||||
"Epoch 30/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 146.2084 - mean_squared_error: 146.2084\n",
|
||||
"Epoch 31/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 139.4028 - mean_squared_error: 139.4028\n",
|
||||
"Epoch 32/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 127.5936 - mean_squared_error: 127.5936\n",
|
||||
"Epoch 33/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 126.8296 - mean_squared_error: 126.8296\n",
|
||||
"Epoch 34/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 120.6797 - mean_squared_error: 120.6797\n",
|
||||
"Epoch 35/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 109.6528 - mean_squared_error: 109.6528\n",
|
||||
"Epoch 36/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 108.0870 - mean_squared_error: 108.0870\n",
|
||||
"Epoch 37/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 103.3821 - mean_squared_error: 103.3821\n",
|
||||
"Epoch 38/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 101.3340 - mean_squared_error: 101.3340\n",
|
||||
"Epoch 39/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 97.4961 - mean_squared_error: 97.4961\n",
|
||||
"Epoch 40/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 101.1986 - mean_squared_error: 101.1986\n",
|
||||
"Epoch 41/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 85.8747 - mean_squared_error: 85.8747\n",
|
||||
"Epoch 42/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 83.6872 - mean_squared_error: 83.6872\n",
|
||||
"Epoch 43/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 83.8899 - mean_squared_error: 83.8899\n",
|
||||
"Epoch 44/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 78.8383 - mean_squared_error: 78.8383\n",
|
||||
"Epoch 45/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 77.0742 - mean_squared_error: 77.0742\n",
|
||||
"Epoch 46/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 77.3783 - mean_squared_error: 77.3783\n",
|
||||
"Epoch 47/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 74.7967 - mean_squared_error: 74.7967\n",
|
||||
"Epoch 48/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 74.1861 - mean_squared_error: 74.1861\n",
|
||||
"Epoch 49/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 71.5402 - mean_squared_error: 71.5402\n",
|
||||
"Epoch 50/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 65.2219 - mean_squared_error: 65.2219\n",
|
||||
"Epoch 51/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 68.7477 - mean_squared_error: 68.7477\n",
|
||||
"Epoch 52/60\n",
|
||||
"274/274 [==============================] - 0s 2ms/step - loss: 64.0499 - mean_squared_error: 64.0499\n",
|
||||
"Epoch 53/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 66.3469 - mean_squared_error: 66.3469\n",
|
||||
"Epoch 54/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 66.4551 - mean_squared_error: 66.4551\n",
|
||||
"Epoch 55/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 62.5891 - mean_squared_error: 62.5891\n",
|
||||
"Epoch 56/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 54.9064 - mean_squared_error: 54.9064\n",
|
||||
"Epoch 57/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 54.1649 - mean_squared_error: 54.1649\n",
|
||||
"Epoch 58/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 59.5273 - mean_squared_error: 59.5273\n",
|
||||
"Epoch 59/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 50.9209 - mean_squared_error: 50.9209\n",
|
||||
"Epoch 60/60\n",
|
||||
"274/274 [==============================] - 0s 1ms/step - loss: 50.5574 - mean_squared_error: 50.5574\n"
|
||||
"Epoch 1/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 1216.5399 - mean_squared_error: 1216.5399\n",
|
||||
"Epoch 2/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 794.1711 - mean_squared_error: 794.1711\n",
|
||||
"Epoch 3/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 580.7461 - mean_squared_error: 580.7461\n",
|
||||
"Epoch 4/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 484.1317 - mean_squared_error: 484.1317\n",
|
||||
"Epoch 5/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 441.7448 - mean_squared_error: 441.7448\n",
|
||||
"Epoch 6/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 392.2047 - mean_squared_error: 392.2047\n",
|
||||
"Epoch 7/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 361.4105 - mean_squared_error: 361.4105\n",
|
||||
"Epoch 8/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 312.9633 - mean_squared_error: 312.9633\n",
|
||||
"Epoch 9/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 275.2529 - mean_squared_error: 275.2529\n",
|
||||
"Epoch 10/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 246.7625 - mean_squared_error: 246.7625\n",
|
||||
"Epoch 11/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 195.6685 - mean_squared_error: 195.6685\n",
|
||||
"Epoch 12/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 168.8491 - mean_squared_error: 168.8491\n",
|
||||
"Epoch 13/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 150.1201 - mean_squared_error: 150.1201\n",
|
||||
"Epoch 14/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 122.6171 - mean_squared_error: 122.6171\n",
|
||||
"Epoch 15/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 100.8923 - mean_squared_error: 100.8923\n",
|
||||
"Epoch 16/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 87.8484 - mean_squared_error: 87.8484\n",
|
||||
"Epoch 17/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 77.6876 - mean_squared_error: 77.6876\n",
|
||||
"Epoch 18/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 63.2032 - mean_squared_error: 63.2032\n",
|
||||
"Epoch 19/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 57.2543 - mean_squared_error: 57.2543\n",
|
||||
"Epoch 20/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 45.0924 - mean_squared_error: 45.0924\n",
|
||||
"Epoch 21/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 49.1593 - mean_squared_error: 49.1593\n",
|
||||
"Epoch 22/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 58.2306 - mean_squared_error: 58.2306\n",
|
||||
"Epoch 23/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 48.0242 - mean_squared_error: 48.0242\n",
|
||||
"Epoch 24/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 38.6356 - mean_squared_error: 38.6356\n",
|
||||
"Epoch 25/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 30.9926 - mean_squared_error: 30.9926\n",
|
||||
"Epoch 26/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 29.7819 - mean_squared_error: 29.7819\n",
|
||||
"Epoch 27/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 32.5139 - mean_squared_error: 32.5139\n",
|
||||
"Epoch 28/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 40.1129 - mean_squared_error: 40.1129\n",
|
||||
"Epoch 29/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 51.6793 - mean_squared_error: 51.6793\n",
|
||||
"Epoch 30/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 37.1284 - mean_squared_error: 37.1284\n",
|
||||
"Epoch 31/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 30.2074 - mean_squared_error: 30.2074\n",
|
||||
"Epoch 32/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 27.1982 - mean_squared_error: 27.1982\n",
|
||||
"Epoch 33/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 26.5477 - mean_squared_error: 26.5477\n",
|
||||
"Epoch 34/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 25.7544 - mean_squared_error: 25.7544\n",
|
||||
"Epoch 35/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 24.1754 - mean_squared_error: 24.1754\n",
|
||||
"Epoch 36/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 27.5213 - mean_squared_error: 27.5213\n",
|
||||
"Epoch 37/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 30.3435 - mean_squared_error: 30.3435\n",
|
||||
"Epoch 38/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 32.7374 - mean_squared_error: 32.7374\n",
|
||||
"Epoch 39/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 29.2545 - mean_squared_error: 29.2545\n",
|
||||
"Epoch 40/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 28.4834 - mean_squared_error: 28.4834\n",
|
||||
"Epoch 41/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 22.9177 - mean_squared_error: 22.9177\n",
|
||||
"Epoch 42/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 21.6796 - mean_squared_error: 21.6796\n",
|
||||
"Epoch 43/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 20.2429 - mean_squared_error: 20.2429\n",
|
||||
"Epoch 44/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 21.2112 - mean_squared_error: 21.2112\n",
|
||||
"Epoch 45/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 25.0341 - mean_squared_error: 25.0341\n",
|
||||
"Epoch 46/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 22.3963 - mean_squared_error: 22.3963\n",
|
||||
"Epoch 47/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 23.1122 - mean_squared_error: 23.1122\n",
|
||||
"Epoch 48/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 28.0343 - mean_squared_error: 28.0343\n",
|
||||
"Epoch 49/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 22.2908 - mean_squared_error: 22.2908\n",
|
||||
"Epoch 50/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 21.7871 - mean_squared_error: 21.7871\n",
|
||||
"Epoch 51/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 19.8841 - mean_squared_error: 19.8841\n",
|
||||
"Epoch 52/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 20.5390 - mean_squared_error: 20.5390\n",
|
||||
"Epoch 53/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 22.3869 - mean_squared_error: 22.3869\n",
|
||||
"Epoch 54/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 20.6540 - mean_squared_error: 20.6540\n",
|
||||
"Epoch 55/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 18.3056 - mean_squared_error: 18.3056\n",
|
||||
"Epoch 56/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 22.7574 - mean_squared_error: 22.7574\n",
|
||||
"Epoch 57/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 20.1425 - mean_squared_error: 20.1425\n",
|
||||
"Epoch 58/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 17.5521 - mean_squared_error: 17.5521\n",
|
||||
"Epoch 59/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 18.2735 - mean_squared_error: 18.2735\n",
|
||||
"Epoch 60/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 17.6372 - mean_squared_error: 17.6372\n",
|
||||
"Epoch 61/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 15.2790 - mean_squared_error: 15.2790\n",
|
||||
"Epoch 62/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 12.9527 - mean_squared_error: 12.9527\n",
|
||||
"Epoch 63/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 13.2732 - mean_squared_error: 13.2732\n",
|
||||
"Epoch 64/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 18.0740 - mean_squared_error: 18.0740\n",
|
||||
"Epoch 65/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 23.5823 - mean_squared_error: 23.5823\n",
|
||||
"Epoch 66/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 22.4731 - mean_squared_error: 22.4731\n",
|
||||
"Epoch 67/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 17.0889 - mean_squared_error: 17.0889\n",
|
||||
"Epoch 68/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 13.5507 - mean_squared_error: 13.5507\n",
|
||||
"Epoch 69/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 14.6270 - mean_squared_error: 14.6270\n",
|
||||
"Epoch 70/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 15.7420 - mean_squared_error: 15.7420\n",
|
||||
"Epoch 71/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 15.6920 - mean_squared_error: 15.6920\n",
|
||||
"Epoch 72/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 17.8469 - mean_squared_error: 17.8469\n",
|
||||
"Epoch 73/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 20.0690 - mean_squared_error: 20.0690\n",
|
||||
"Epoch 74/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 16.4538 - mean_squared_error: 16.4538\n",
|
||||
"Epoch 75/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 13.7226 - mean_squared_error: 13.7226\n",
|
||||
"Epoch 76/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 11.6082 - mean_squared_error: 11.6082\n",
|
||||
"Epoch 77/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 11.4206 - mean_squared_error: 11.4206\n",
|
||||
"Epoch 78/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 12.9487 - mean_squared_error: 12.9487\n",
|
||||
"Epoch 79/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 14.9138 - mean_squared_error: 14.9138\n",
|
||||
"Epoch 80/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 16.7601 - mean_squared_error: 16.7601\n",
|
||||
"Epoch 81/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 16.3490 - mean_squared_error: 16.3490\n",
|
||||
"Epoch 82/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 12.4280 - mean_squared_error: 12.4280\n",
|
||||
"Epoch 83/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 9.2046 - mean_squared_error: 9.2046\n",
|
||||
"Epoch 84/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 8.5721 - mean_squared_error: 8.5721\n",
|
||||
"Epoch 85/100\n",
|
||||
"274/274 [==============================] - 2s 7ms/step - loss: 9.8912 - mean_squared_error: 9.8912\n",
|
||||
"Epoch 86/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 10.4523 - mean_squared_error: 10.4523\n",
|
||||
"Epoch 87/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 19.6175 - mean_squared_error: 19.6175\n",
|
||||
"Epoch 88/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 16.5808 - mean_squared_error: 16.5808\n",
|
||||
"Epoch 89/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 15.8564 - mean_squared_error: 15.8564\n",
|
||||
"Epoch 90/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 12.2800 - mean_squared_error: 12.2800\n",
|
||||
"Epoch 91/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 10.0090 - mean_squared_error: 10.0090\n",
|
||||
"Epoch 92/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 9.4647 - mean_squared_error: 9.4647\n",
|
||||
"Epoch 93/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 10.7999 - mean_squared_error: 10.7999\n",
|
||||
"Epoch 94/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 10.2449 - mean_squared_error: 10.2449\n",
|
||||
"Epoch 95/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 10.0525 - mean_squared_error: 10.0525\n",
|
||||
"Epoch 96/100\n",
|
||||
"274/274 [==============================] - 2s 5ms/step - loss: 11.3375 - mean_squared_error: 11.3375\n",
|
||||
"Epoch 97/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 11.6955 - mean_squared_error: 11.6955\n",
|
||||
"Epoch 98/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 11.2546 - mean_squared_error: 11.2546\n",
|
||||
"Epoch 99/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 10.2126 - mean_squared_error: 10.2126\n",
|
||||
"Epoch 100/100\n",
|
||||
"274/274 [==============================] - 2s 6ms/step - loss: 8.5690 - mean_squared_error: 8.5690\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<keras.callbacks.History at 0x20e609f0cd0>"
|
||||
"<keras.callbacks.History at 0x20e6929d2e0>"
|
||||
]
|
||||
},
|
||||
"execution_count": 48,
|
||||
"execution_count": 308,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"model.compile(loss= \"mean_squared_error\" , optimizer=\"adam\", metrics=[\"mean_squared_error\"])\n",
|
||||
"model.fit(x, y, epochs=60)"
|
||||
"model.fit(x, y, epochs=100)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 49,
|
||||
"execution_count": 309,
|
||||
"id": "bad4d35a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"x_test = pd.read_csv('test-A/in.tsv', sep='\\t', names=in_columns)\n",
|
||||
"#y_test = pd.read_csv('dev-0/expected.tsv', sep='\\t',names=['rainfall'])\n",
|
||||
"#y_test = pd.read_csv('test-A/expected.tsv', sep='\\t',names=['rainfall'])\n",
|
||||
"#x_test = x_test.drop(['nazwa_stacji', 'typ_zbioru'],axis=1)\n",
|
||||
"df_train = pd.read_csv('train/in.tsv', names=in_columns, sep='\\t')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 50,
|
||||
"execution_count": 310,
|
||||
"id": "a3b6fff0",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -1270,7 +1353,7 @@
|
||||
"9480"
|
||||
]
|
||||
},
|
||||
"execution_count": 50,
|
||||
"execution_count": 310,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -1282,7 +1365,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 51,
|
||||
"execution_count": 311,
|
||||
"id": "cdf89362",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -1292,7 +1375,7 @@
|
||||
"9480"
|
||||
]
|
||||
},
|
||||
"execution_count": 51,
|
||||
"execution_count": 311,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -1304,7 +1387,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 52,
|
||||
"execution_count": 312,
|
||||
"id": "fe00b876",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -1691,7 +1774,7 @@
|
||||
"[9480 rows x 73 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 52,
|
||||
"execution_count": 312,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -1703,7 +1786,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 53,
|
||||
"execution_count": 313,
|
||||
"id": "657a7976",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -2090,7 +2173,7 @@
|
||||
"[720 rows x 73 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 53,
|
||||
"execution_count": 313,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -2102,7 +2185,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 54,
|
||||
"execution_count": 314,
|
||||
"id": "1163c550",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -2110,7 +2193,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"23/23 [==============================] - 0s 955us/step\n"
|
||||
"23/23 [==============================] - 0s 2ms/step\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@ -2120,7 +2203,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 55,
|
||||
"execution_count": 315,
|
||||
"id": "6c24ee76",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -2128,7 +2211,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"23/23 [==============================] - 0s 1ms/step\n"
|
||||
"23/23 [==============================] - 0s 2ms/step\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user