Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
moocarme committed Jan 11, 2020
1 parent 5dbdfc1 commit 0c0f39a
Show file tree
Hide file tree
Showing 30 changed files with 166 additions and 166 deletions.
2 changes: 1 addition & 1 deletion Chapter01/Exercise1.01/Exercise1_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@
"outputs": [],
"source": [
"feats.to_csv('../data/OSI_feats.csv', index=False)\n",
"target.to_csv('../data/OSI_target.csv', header='Class', index=False)"
"target.to_csv('../data/OSI_target.csv', header='Revenue', index=False)"
]
}
],
Expand Down
38 changes: 19 additions & 19 deletions Chapter01/Exercise1.02/Exercise1_02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -859,22 +859,22 @@
{
"data": {
"text/plain": [
"array([[<matplotlib.axes._subplots.AxesSubplot object at 0x1109b7d68>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x120471780>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x1204a4978>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x1204d4f28>],\n",
" [<matplotlib.axes._subplots.AxesSubplot object at 0x120515518>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x120542ac8>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x1205800b8>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x1205b06a0>],\n",
" [<matplotlib.axes._subplots.AxesSubplot object at 0x1205b06d8>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x120621208>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x12064f7b8>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x120683d68>],\n",
" [<matplotlib.axes._subplots.AxesSubplot object at 0x1206bf358>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x1206ee908>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x120722eb8>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x12075e4a8>]],\n",
"array([[<matplotlib.axes._subplots.AxesSubplot object at 0x10a26bd30>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x10a2c6f28>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a51e198>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a54b748>],\n",
" [<matplotlib.axes._subplots.AxesSubplot object at 0x11a57fcc0>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a5ba2b0>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a5eb860>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a61ee48>],\n",
" [<matplotlib.axes._subplots.AxesSubplot object at 0x11a61ee80>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a68b9b0>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a6bcf60>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a6fb550>],\n",
" [<matplotlib.axes._subplots.AxesSubplot object at 0x11a72ab00>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a7680f0>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a7986a0>,\n",
" <matplotlib.axes._subplots.AxesSubplot object at 0x11a7cac50>]],\n",
" dtype=object)"
]
},
Expand Down Expand Up @@ -940,7 +940,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x120bc39b0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x11abe2b00>"
]
},
"execution_count": 6,
Expand Down Expand Up @@ -1104,7 +1104,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x1210d0940>"
"<matplotlib.axes._subplots.AxesSubplot at 0x11aca6278>"
]
},
"execution_count": 10,
Expand Down Expand Up @@ -1850,7 +1850,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x121a30438>"
"<matplotlib.axes._subplots.AxesSubplot at 0x11bb24fd0>"
]
},
"execution_count": 25,
Expand Down
Empty file modified Chapter04/Activity4.02/Activity4_02.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter04/Activity4.03/Activity4_03.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter04/Exercise4.02/Exercise4_02.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter04/Exercise4.03/Exercise4_03.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter05/Activity5.01/Activity5_01.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter05/Activity5.03/Activity5_03.ipynb
100755 → 100644
Empty file.
Empty file modified Chapter05/Exercise5.01/Exercise5_01.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter05/Exercise5.02/Exercise5_02.ipynb
100644 → 100755
Empty file.
14 changes: 0 additions & 14 deletions Chapter06/Activity6.01/Activity6_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,6 @@
"X_test = pd.DataFrame(X_test, columns = X_train.columns)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"#Convert DataFrame to Numpy array\n",
"\n",
"#x_train=xtrain.values\n",
"#x_test=xtest.values\n",
"#y_train=ytrain.values\n",
"#y_test=ytest.values\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
2 changes: 1 addition & 1 deletion Chapter06/Activity6.02/Activity6_02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
],
"source": [
"# Fit the Model\n",
"model.fit(X_train, y_train, epochs=100, batch_size=20, verbose=1, validation_split=0.2)"
"model.fit(X_train, y_train, epochs=100, batch_size=20, verbose=1, validation_split=0.2, shuffle=False)"
]
},
{
Expand Down
10 changes: 2 additions & 8 deletions Chapter06/Exercise6.03/Exercise6_03.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,7 @@
"38400/38400 [==============================] - 6s 150us/step - loss: 0.0221 - accuracy: 0.9945 - val_loss: 0.0299 - val_accuracy: 0.9925\n",
"Epoch 54/100\n",
"38400/38400 [==============================] - 5s 135us/step - loss: 0.0237 - accuracy: 0.9940 - val_loss: 0.0472 - val_accuracy: 0.9925\n",
"Epoch 55/100\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch 55/100\n",
"38400/38400 [==============================] - 6s 152us/step - loss: 0.0214 - accuracy: 0.9939 - val_loss: 0.0414 - val_accuracy: 0.9925\n",
"Epoch 56/100\n",
"38400/38400 [==============================] - 5s 138us/step - loss: 0.0224 - accuracy: 0.9936 - val_loss: 0.0426 - val_accuracy: 0.9933\n",
Expand Down Expand Up @@ -327,7 +321,7 @@
],
"source": [
"# Fit the Model\n",
"model.fit(X_train, y_train, epochs=100, batch_size=20, verbose=1, validation_split=0.2)"
"model.fit(X_train, y_train, epochs=100, batch_size=20, verbose=1, validation_split=0.2, shuffle=False)"
]
},
{
Expand Down
Empty file modified Chapter07/Activity7.01/Activity7_01.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter07/Activity7.02/Activity7_02.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter07/Exercise7.01/Exercise7_01.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter07/Exercise7.02/Exercise7_02.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter07/Exercise7.03/Exercise7_03.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter07/Exercise7.04/Exercise7_04.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter08/Activity8.01/Activity8_01.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter08/Activity8.02/Activity8_02.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter08/Exercise8.01/Exercise8_01.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter08/Exercise8.02/Exercise8_02.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter08/Exercise8.03/Exercise8_03.ipynb
100644 → 100755
Empty file.
Empty file modified Chapter08/Exercise8.04/Exercise8_04.ipynb
100644 → 100755
Empty file.
11 changes: 7 additions & 4 deletions Chapter09/Activity9.01/Activity9_01.ipynb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd"
"import pandas as pd\n",
"from tensorflow import random"
]
},
{
Expand Down Expand Up @@ -131,7 +132,7 @@
}
],
"source": [
"dataset_training = pd.read_csv('AMZN_train.csv')\n",
"dataset_training = pd.read_csv('../AMZN_train.csv')\n",
"dataset_training.head()"
]
},
Expand Down Expand Up @@ -315,7 +316,9 @@
"metadata": {},
"outputs": [],
"source": [
"np.random.seed(1)\n",
"seed = 1\n",
"np.random.seed(seed)\n",
"random.set_seed(seed)\n",
"\n",
"# initialize model\n",
"model = Sequential()"
Expand Down Expand Up @@ -616,7 +619,7 @@
}
],
"source": [
"dataset_testing = pd.read_csv('AMZN_test.csv')\n",
"dataset_testing = pd.read_csv('../AMZN_test.csv')\n",
"actual_stock_price = dataset_testing[['Open']].values\n",
"actual_stock_price"
]
Expand Down
11 changes: 7 additions & 4 deletions Chapter09/Activity9.02/Activity9_02.ipynb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd"
"import pandas as pd\n",
"from tensorflow import random"
]
},
{
Expand Down Expand Up @@ -131,7 +132,7 @@
}
],
"source": [
"dataset_training = pd.read_csv('AMZN_train.csv')\n",
"dataset_training = pd.read_csv('../AMZN_train.csv')\n",
"dataset_training.head()"
]
},
Expand Down Expand Up @@ -255,7 +256,9 @@
"metadata": {},
"outputs": [],
"source": [
"np.random.seed(1)\n",
"seed = 1\n",
"np.random.seed(seed)\n",
"random.set_seed(seed)\n",
"\n",
"model = Sequential()"
]
Expand Down Expand Up @@ -559,7 +562,7 @@
}
],
"source": [
"dataset_testing = pd.read_csv('AMZN_test.csv')\n",
"dataset_testing = pd.read_csv('../AMZN_test.csv')\n",
"actual_stock_price = dataset_testing[['Open']].values\n",
"actual_stock_price"
]
Expand Down
11 changes: 7 additions & 4 deletions Chapter09/Activity9.03/Activity9_03.ipynb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd"
"import pandas as pd\n",
"from tensorflow import random"
]
},
{
Expand Down Expand Up @@ -131,7 +132,7 @@
}
],
"source": [
"dataset_training = pd.read_csv('AMZN_train.csv')\n",
"dataset_training = pd.read_csv('../AMZN_train.csv')\n",
"dataset_training.head()"
]
},
Expand Down Expand Up @@ -315,7 +316,9 @@
"metadata": {},
"outputs": [],
"source": [
"np.random.seed(1)\n",
"seed = 1\n",
"np.random.seed(seed)\n",
"random.set_seed(seed)\n",
"\n",
"model = Sequential()"
]
Expand Down Expand Up @@ -615,7 +618,7 @@
}
],
"source": [
"dataset_testing = pd.read_csv('AMZN_test.csv')\n",
"dataset_testing = pd.read_csv('../AMZN_test.csv')\n",
"actual_stock_price = dataset_testing[['Open']].values\n",
"actual_stock_price"
]
Expand Down
Loading

0 comments on commit 0c0f39a

Please sign in to comment.