Tried expanding hyperparameter tuning

This commit is contained in:
2025-10-22 14:55:06 +02:00
parent 87901ed254
commit 53d5116bbd
3 changed files with 295 additions and 51 deletions

View File

@@ -6,12 +6,12 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"### Creates a correlation matrix\n", "### Creates a correlation matrix\n",
"We should probably remove or combine some features" "This used to see if we should remove or combine some features"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 6,
"id": "557ed2b5", "id": "557ed2b5",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -30,27 +30,25 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"<class 'pandas.core.frame.DataFrame'>\n", "<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 32561 entries, 0 to 32560\n", "Index: 30162 entries, 1 to 32560\n",
"Data columns (total 15 columns):\n", "Data columns (total 13 columns):\n",
" # Column Non-Null Count Dtype \n", " # Column Non-Null Count Dtype\n",
"--- ------ -------------- ----- \n", "--- ------ -------------- -----\n",
" 0 age 32561 non-null int64 \n", " 0 age 30162 non-null int64\n",
" 1 workclass 32561 non-null object\n", " 1 workclass 30162 non-null int64\n",
" 2 fnlwgt 32561 non-null int64 \n", " 2 education.num 30162 non-null int64\n",
" 3 education 32561 non-null object\n", " 3 marital.status 30162 non-null int64\n",
" 4 education.num 32561 non-null int64 \n", " 4 occupation 30162 non-null int64\n",
" 5 marital.status 32561 non-null object\n", " 5 relationship 30162 non-null int64\n",
" 6 occupation 32561 non-null object\n", " 6 race 30162 non-null int64\n",
" 7 relationship 32561 non-null object\n", " 7 sex 30162 non-null int64\n",
" 8 race 32561 non-null object\n", " 8 capital.gain 30162 non-null int64\n",
" 9 sex 32561 non-null object\n", " 9 capital.loss 30162 non-null int64\n",
" 10 capital.gain 32561 non-null int64 \n", " 10 hours.per.week 30162 non-null int64\n",
" 11 capital.loss 32561 non-null int64 \n", " 11 native.country 30162 non-null int64\n",
" 12 hours.per.week 32561 non-null int64 \n", " 12 income 30162 non-null int64\n",
" 13 native.country 32561 non-null object\n", "dtypes: int64(13)\n",
" 14 income 32561 non-null object\n", "memory usage: 3.2 MB\n"
"dtypes: int64(6), object(9)\n",
"memory usage: 3.7+ MB\n"
] ]
} }
], ],
@@ -91,8 +89,8 @@
"plt.show()\n", "plt.show()\n",
"\n", "\n",
"#df_encoded.head(10)\n", "#df_encoded.head(10)\n",
"df.info()\n", "df_encoded.info()\n",
"\n" "#df.head(20)\n"
] ]
}, },
{ {

File diff suppressed because one or more lines are too long

Binary file not shown.