guh
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 12,
|
"execution_count": 5,
|
||||||
"id": "b7ee7a83",
|
"id": "b7ee7a83",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 13,
|
"execution_count": 6,
|
||||||
"id": "edda6af5",
|
"id": "edda6af5",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -450,7 +450,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 7,
|
||||||
"id": "0d381aa2",
|
"id": "0d381aa2",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -534,7 +534,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 15,
|
"execution_count": 8,
|
||||||
"id": "ca5e9c28",
|
"id": "ca5e9c28",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -581,7 +581,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 16,
|
"execution_count": 9,
|
||||||
"id": "daecf558",
|
"id": "daecf558",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -591,7 +591,7 @@
|
|||||||
"<Axes: xlabel='AgeInDays', ylabel='Count'>"
|
"<Axes: xlabel='AgeInDays', ylabel='Count'>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 16,
|
"execution_count": 9,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
},
|
},
|
||||||
@@ -623,7 +623,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 17,
|
"execution_count": 10,
|
||||||
"id": "5521b827",
|
"id": "5521b827",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -633,7 +633,7 @@
|
|||||||
"<Axes: xlabel='Hour', ylabel='Count'>"
|
"<Axes: xlabel='Hour', ylabel='Count'>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 17,
|
"execution_count": 10,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
},
|
},
|
||||||
@@ -655,7 +655,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 18,
|
"execution_count": 11,
|
||||||
"id": "3f9a5c00",
|
"id": "3f9a5c00",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -809,7 +809,7 @@
|
|||||||
"4 False False False "
|
"4 False False False "
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 18,
|
"execution_count": 11,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@@ -824,7 +824,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 12,
|
||||||
"id": "17384e1b",
|
"id": "17384e1b",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -867,7 +867,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 13,
|
||||||
"id": "b4104bd2",
|
"id": "b4104bd2",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -938,7 +938,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 21,
|
"execution_count": 14,
|
||||||
"id": "b82c29be",
|
"id": "b82c29be",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -985,7 +985,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 17,
|
||||||
"id": "8ed14aaf",
|
"id": "8ed14aaf",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -1024,7 +1024,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"knn_search = KNeighborsClassifier()\n",
|
"knn_search = KNeighborsClassifier()\n",
|
||||||
"param_grid = {\"n_neighbors\": np.arange(1, 100)}\n",
|
"param_grid = {\"n_neighbors\": np.arange(1, 100)}\n",
|
||||||
"knn_gscv = GridSearchCV(knn_search, param_grid, cv=5, scoring=\"precision\") # most important metric from business perspective.\n",
|
"knn_gscv = GridSearchCV(knn_search, param_grid, cv=5, scoring=\"precision\", n_jobs=8) # most important metric from business perspective.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# fit the model to the training set\n",
|
"# fit the model to the training set\n",
|
||||||
"knn_gscv.fit(x_train, y_train)\n",
|
"knn_gscv.fit(x_train, y_train)\n",
|
||||||
@@ -1036,7 +1036,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 23,
|
"execution_count": null,
|
||||||
"id": "22d2e4ae",
|
"id": "22d2e4ae",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
|||||||
131166
project1.csv
Normal file
131166
project1.csv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user