Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions 04_07_begin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@
},
{
"cell_type": "code",
"source": [
"# Pandas info() function is used to get a concise summary of the dataframe.\n",
"advertising_df.info()"
],
"execution_count": null,
"metadata": {
"id": "jREeqEBUcl9j"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"# Pandas info() function is used to get a concise summary of the dataframe.\n",
"advertising_df.info()"
]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -191,14 +191,14 @@
},
{
"cell_type": "code",
"source": [
"advertising_df.corr()"
],
"execution_count": null,
"metadata": {
"id": "X1tn4RQYA7o-"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"advertising_df.corr()"
]
},
{
"cell_type": "code",
Expand All @@ -211,7 +211,7 @@
"### Visualize Correlation\n",
"\n",
"# Generate a mask for the upper triangle\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n",
"mask[np.triu_indices_from(mask)] = True\n",
"\n",
"# Set up the matplotlib figure\n",
Expand Down Expand Up @@ -455,15 +455,15 @@
},
{
"cell_type": "code",
"source": [
"## Plot a graph of model loss # show the graph of model loss in trainig and validation\n",
"\n"
],
"execution_count": null,
"metadata": {
"id": "Im0kQux_jJhI"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"## Plot a graph of model loss # show the graph of model loss in trainig and validation\n",
"\n"
]
}
],
"metadata": {
Expand Down Expand Up @@ -496,4 +496,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
2 changes: 1 addition & 1 deletion 04_07_end.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
"### Visualize Correlation\n",
"\n",
"# Generate a mask for the upper triangle\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n",
"mask[np.triu_indices_from(mask)] = True\n",
"\n",
"# Set up the matplotlib figure\n",
Expand Down
4 changes: 2 additions & 2 deletions 04_07_extras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@
"text": [
"<ipython-input-13-6c77a4103e7b>:4: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.\n",
"Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations\n",
" mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n"
" mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n"
]
},
{
Expand Down Expand Up @@ -1221,7 +1221,7 @@
"### Visualize Correlation\n",
"\n",
"# Generate a mask for the upper triangle\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n",
"mask[np.triu_indices_from(mask)] = True\n",
"\n",
"# Set up the matplotlib figure\n",
Expand Down
2 changes: 1 addition & 1 deletion 05_06_begin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"### Visualize Correlation\n",
"\n",
"# Generate a mask for the upper triangle\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n",
"mask[np.triu_indices_from(mask)] = True\n",
"\n",
"# Set up the matplotlib figure\n",
Expand Down
4 changes: 2 additions & 2 deletions 05_06_extras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
"text": [
"<ipython-input-11-6c77a4103e7b>:4: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.\n",
"Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations\n",
" mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n"
" mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n"
]
},
{
Expand Down Expand Up @@ -859,7 +859,7 @@
"### Visualize Correlation\n",
"\n",
"# Generate a mask for the upper triangle\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n",
"mask[np.triu_indices_from(mask)] = True\n",
"\n",
"# Set up the matplotlib figure\n",
Expand Down
4 changes: 2 additions & 2 deletions predict_sales.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@
"text": [
"<ipython-input-10-6c77a4103e7b>:4: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.\n",
"Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations\n",
" mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n"
" mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n"
]
},
{
Expand Down Expand Up @@ -986,7 +986,7 @@
"### Visualize Correlation\n",
"\n",
"# Generate a mask for the upper triangle\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool)\n",
"mask = np.zeros_like(advertising_df.corr(), dtype=np.bool_)\n",
"mask[np.triu_indices_from(mask)] = True\n",
"\n",
"# Set up the matplotlib figure\n",
Expand Down