Skip to content

Commit f8777ad

Browse files
committed
revise source code
1 parent 0ae1203 commit f8777ad

File tree

3 files changed

+20
-1414
lines changed

3 files changed

+20
-1414
lines changed

Competition/McKinseyAnalyticsPrediction/NumberOfVehiclesPrediction.ipynb

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@
759759
"cell_type": "markdown",
760760
"metadata": {},
761761
"source": [
762-
"## Build model: Try NN, LSTM, GRU for this prediction"
762+
"## Build model: Try NN, LSTM, GRU for this prediction\n",
763+
"### Construct a 4 layers full connected deep learning neural network to perform prediction by early stop."
763764
]
764765
},
765766
{
@@ -972,7 +973,9 @@
972973
"for i in range(100):\n",
973974
"\tmodel.fit(trainX, trainY, epochs=1, batch_size=batch_size, verbose=2, shuffle=False)\n",
974975
"\tmodel.reset_states()\n",
975-
"```"
976+
"```\n",
977+
"\n",
978+
"### Construct a 4 layers deep learning LSTM network to perform prediction."
976979
]
977980
},
978981
{
@@ -1180,7 +1183,9 @@
11801183
"cell_type": "markdown",
11811184
"metadata": {},
11821185
"source": [
1183-
"## GRU model"
1186+
"## Gated Recurrent Unit (GRU) model\n",
1187+
"\n",
1188+
"### Construct a 4 layers deep learning GRU network to perform prediction."
11841189
]
11851190
},
11861191
{
@@ -1356,11 +1361,18 @@
13561361
]
13571362
},
13581363
{
1359-
"cell_type": "code",
1360-
"execution_count": null,
1364+
"cell_type": "markdown",
13611365
"metadata": {},
1362-
"outputs": [],
1363-
"source": []
1366+
"source": [
1367+
"## GRU get better result in similar parameter settings."
1368+
]
1369+
},
1370+
{
1371+
"cell_type": "markdown",
1372+
"metadata": {},
1373+
"source": [
1374+
"## All those parameters still have a lot of space to fine-tune."
1375+
]
13641376
},
13651377
{
13661378
"cell_type": "code",

0 commit comments

Comments
 (0)