Update week45.ipynb
This commit is contained in:
@@ -780,20 +780,66 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 3,
|
||||
"id": "6206aec1",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "ModuleNotFoundError",
|
||||
"evalue": "No module named 'pydot'",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
||||
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
|
||||
"\u001b[0;32m<ipython-input-1-201373266fd5>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0msklearn\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcompose\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mColumnTransformer\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mIPython\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdisplay\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 11\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mpydot\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgraph_from_dot_data\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 12\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
|
||||
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pydot'"
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
" (0, 2)\t1.0\n",
|
||||
" (0, 5)\t1.0\n",
|
||||
" (0, 8)\t1.0\n",
|
||||
" (1, 1)\t1.0\n",
|
||||
" (1, 3)\t1.0\n",
|
||||
" (1, 6)\t1.0\n",
|
||||
" (2, 0)\t1.0\n",
|
||||
" (2, 4)\t1.0\n",
|
||||
" (2, 6)\t1.0\n",
|
||||
" (3, 1)\t1.0\n",
|
||||
" (3, 3)\t1.0\n",
|
||||
" (3, 7)\t1.0\n",
|
||||
" (4, 1)\t1.0\n",
|
||||
" (4, 4)\t1.0\n",
|
||||
" (4, 7)\t1.0\n",
|
||||
" (5, 0)\t1.0\n",
|
||||
" (5, 3)\t1.0\n",
|
||||
" (5, 7)\t1.0\n",
|
||||
" (6, 1)\t1.0\n",
|
||||
" (6, 3)\t1.0\n",
|
||||
" (6, 6)\t1.0\n",
|
||||
" (7, 0)\t1.0\n",
|
||||
" (7, 4)\t1.0\n",
|
||||
" (7, 7)\t1.0\n",
|
||||
" (8, 0)\t1.0\n",
|
||||
" (8, 3)\t1.0\n",
|
||||
" (8, 7)\t1.0\n",
|
||||
" (9, 1)\t1.0\n",
|
||||
" (9, 3)\t1.0\n",
|
||||
" (9, 6)\t1.0\n",
|
||||
" (10, 1)\t1.0\n",
|
||||
" (10, 4)\t1.0\n",
|
||||
" (10, 7)\t1.0\n",
|
||||
"Train set accuracy with Decision Tree: 0.82\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"sh: dot: command not found\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"32512"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
@@ -3500,7 +3546,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
@@ -3514,7 +3560,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.8"
|
||||
"version": "3.8.12"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user