Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
capter 8 ML
Browse files Browse the repository at this point in the history
rtscmrn committed Sep 24, 2022
1 parent 17ef60c commit 297aecd
Showing 2 changed files with 45 additions and 73 deletions.
11 changes: 7 additions & 4 deletions ch07/ch07.ipynb
Original file line number Diff line number Diff line change
@@ -1617,11 +1617,9 @@
],
"metadata": {
"anaconda-cloud": {},
"interpreter": {
"hash": "edd54fd2e57f078c3487181900183977dd507f0490fbfba7e13d479d25a8ccde"
},
"kernelspec": {
"display_name": "Python 3.8.5 64-bit ('mi_virtual_env_3_8': conda)",
"display_name": "Python 3.8.5 ('mi_virtual_env_3_8')",
"language": "python",
"name": "python3"
},
"language_info": {
@@ -1647,6 +1645,11 @@
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"vscode": {
"interpreter": {
"hash": "8ed8d8082f4ceeb2bfc4320dad851d241c318247d18366e289acedf5ee1f0416"
}
}
},
"nbformat": 4,
107 changes: 38 additions & 69 deletions ch08/ch08.ipynb
Original file line number Diff line number Diff line change
@@ -41,16 +41,19 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Sebastian Raschka \n",
"last updated: 2019-12-05 \n",
"Author: Sebastian Raschka\n",
"\n",
"CPython 3.7.1\n",
"IPython 7.10.1\n",
"Last updated: 2022-09-23\n",
"\n",
"numpy 1.17.4\n",
"pandas 0.25.3\n",
"sklearn 0.22\n",
"nltk 3.4.5\n"
"Python implementation: CPython\n",
"Python version : 3.8.5\n",
"IPython version : 8.4.0\n",
"\n",
"numpy : 1.22.4\n",
"pandas : 1.4.3\n",
"sklearn: 1.1.1\n",
"nltk : 3.7\n",
"\n"
]
}
],
@@ -161,53 +164,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"32% | 25 MB | 6.34 MB/s | 4 sec elapsed"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"72% | 58 MB | 7.86 MB/s | 7 sec elapsed"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"100% | 80 MB | 8.24 MB/s | 9 sec elapsed"
"100% | 80 MB | 0.77 MB/s | 104 sec elapsed"
]
}
],
@@ -263,15 +220,22 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Warning: No valid output stream.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"0% [##############################] 100% | ETA: 00:00:00\n",
"Total time elapsed: 00:01:51\n"
"/var/folders/2b/0h0bch1d4tsfsrn41nrnt_pm0000gn/T/ipykernel_50995/2821966182.py:20: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
" df = df.append([[txt, labels[l]]],\n"
]
}
],
@@ -310,7 +274,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
@@ -329,7 +293,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
@@ -338,7 +302,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
@@ -393,7 +357,7 @@
"2 ***SPOILER*** Do not read this, if you think a... 0"
]
},
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
@@ -407,7 +371,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
@@ -416,7 +380,7 @@
"(50000, 2)"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
@@ -480,7 +444,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
@@ -504,7 +468,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [
{
@@ -535,7 +499,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"metadata": {},
"outputs": [
{
@@ -1871,7 +1835,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3.8.5 ('mi_virtual_env_3_8')",
"language": "python",
"name": "python3"
},
@@ -1885,7 +1849,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.8.5"
},
"toc": {
"nav_menu": {},
@@ -1898,6 +1862,11 @@
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"vscode": {
"interpreter": {
"hash": "8ed8d8082f4ceeb2bfc4320dad851d241c318247d18366e289acedf5ee1f0416"
}
}
},
"nbformat": 4,

0 comments on commit 297aecd

Please sign in to comment.