This commit is contained in:
Aditya Pulipaka
2025-10-09 11:17:37 -05:00
parent 367f4b79e4
commit 76981fb68c
2 changed files with 131182 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 5,
"id": "b7ee7a83",
"metadata": {},
"outputs": [],
@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 6,
"id": "edda6af5",
"metadata": {},
"outputs": [
@@ -450,7 +450,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"id": "0d381aa2",
"metadata": {},
"outputs": [
@@ -534,7 +534,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 8,
"id": "ca5e9c28",
"metadata": {},
"outputs": [
@@ -581,7 +581,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 9,
"id": "daecf558",
"metadata": {},
"outputs": [
@@ -591,7 +591,7 @@
"<Axes: xlabel='AgeInDays', ylabel='Count'>"
]
},
"execution_count": 16,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
},
@@ -623,7 +623,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 10,
"id": "5521b827",
"metadata": {},
"outputs": [
@@ -633,7 +633,7 @@
"<Axes: xlabel='Hour', ylabel='Count'>"
]
},
"execution_count": 17,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
},
@@ -655,7 +655,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 11,
"id": "3f9a5c00",
"metadata": {},
"outputs": [
@@ -809,7 +809,7 @@
"4 False False False "
]
},
"execution_count": 18,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
@@ -824,7 +824,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"id": "17384e1b",
"metadata": {},
"outputs": [
@@ -867,7 +867,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"id": "b4104bd2",
"metadata": {},
"outputs": [
@@ -938,7 +938,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 14,
"id": "b82c29be",
"metadata": {},
"outputs": [
@@ -985,7 +985,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 17,
"id": "8ed14aaf",
"metadata": {},
"outputs": [
@@ -1024,7 +1024,7 @@
"\n",
"knn_search = KNeighborsClassifier()\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",
"# fit the model to the training set\n",
"knn_gscv.fit(x_train, y_train)\n",
@@ -1036,7 +1036,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": null,
"id": "22d2e4ae",
"metadata": {},
"outputs": [