Compare commits

...

2 Commits

Author SHA1 Message Date
31ef106e8d Removing lock 2023-03-30 20:45:10 -05:00
3bfa5e0a8a Finalizing Report 2023-03-30 20:44:50 -05:00
3 changed files with 8 additions and 7 deletions

View File

@ -52,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 64,
"execution_count": 218,
"metadata": {},
"outputs": [],
"source": [
@ -72,7 +72,7 @@
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": 219,
"metadata": {},
"outputs": [],
"source": [
@ -98,7 +98,7 @@
},
{
"cell_type": "code",
"execution_count": 69,
"execution_count": 220,
"metadata": {},
"outputs": [
{
@ -109,7 +109,8 @@
"0 1 0.643141\n",
"1 2 0.720241\n",
"2 3 0.710570\n",
"3 4 0.676896\n"
"3 4 0.676896\n",
"4 5 0.664856\n"
]
}
],
@ -121,7 +122,7 @@
"valid_X = validNorm[predictors]\n",
"valid_y = validNorm['MEDV']\n",
"\n",
"for k in range(1,5):\n",
"for k in range(1,6):\n",
" knn = KNeighborsRegressor(n_neighbors=k).fit(train_X, train_y)\n",
" results.append({\n",
" 'k': k,\n",
@ -494,7 +495,7 @@
},
{
"cell_type": "code",
"execution_count": 197,
"execution_count": 221,
"metadata": {},
"outputs": [
{
@ -517,7 +518,7 @@
"# iv.\n",
"print(weather_freq)\n",
"print(traf_freq)\n",
"print(((3 / 12) * ((2 / 3) * (0 / 3))) / (((3 / 12) * ((2 / 3) * (0 / 3))) + ((9 / 12) * ((3 / 9) * (2 / 9)))))\n"
"print(2/3 * 0/3 * 3/12)"
]
},
{

Binary file not shown.

Binary file not shown.