Skip to content

Commit e05df75

Browse files
committed
Small fixes
1 parent 3f1b4a1 commit e05df75

15 files changed

+665
-471
lines changed

01_exploratory_analysis_pre_treatment.ipynb

+87-127
Large diffs are not rendered by default.

02_manual_pre_processing.ipynb

+18-20
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": 13,
23+
"execution_count": 1,
2424
"metadata": {},
2525
"outputs": [],
2626
"source": [
@@ -40,16 +40,16 @@
4040
},
4141
{
4242
"cell_type": "code",
43-
"execution_count": 14,
43+
"execution_count": 2,
4444
"metadata": {},
4545
"outputs": [
4646
{
4747
"data": {
4848
"text/plain": [
49-
"(614, 15)"
49+
"(614, 14)"
5050
]
5151
},
52-
"execution_count": 14,
52+
"execution_count": 2,
5353
"metadata": {},
5454
"output_type": "execute_result"
5555
}
@@ -69,7 +69,7 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": 15,
72+
"execution_count": 3,
7373
"metadata": {},
7474
"outputs": [],
7575
"source": [
@@ -97,24 +97,22 @@
9797
"total_income = df_fill['ApplicantIncome'] + df_fill['CoapplicantIncome']\n",
9898
"remaining_income = (total_income - base_loan_installment) / total_income\n",
9999
"\n",
100-
"married = df_import['Married'].copy()\n",
101-
"married[married == 'Yes'] = 1\n",
102-
"married[married == 'No'] = 0\n",
103-
"\n",
104-
"dependents = df_import['Dependents'].copy()\n",
105-
"dependents[dependents == '0'] = 0\n",
106-
"dependents[dependents == '1'] = 1\n",
107-
"dependents[dependents == '2'] = 2\n",
108-
"dependents[dependents == '3+'] = 3\n",
109-
"\n",
110-
"\n",
111-
"people_in_house = dependents + married + 1\n",
112-
"household_percapita = (total_income / people_in_house).astype(float)\n",
113-
"household_percapita.describe()\n",
100+
"# married = df_import['Married'].copy()\n",
101+
"# married[married == 'Yes'] = 1\n",
102+
"# married[married == 'No'] = 0\n",
103+
"# dependents = df_import['Dependents'].copy()\n",
104+
"# dependents[dependents == '0'] = 0\n",
105+
"# dependents[dependents == '1'] = 1\n",
106+
"# dependents[dependents == '2'] = 2\n",
107+
"# dependents[dependents == '3+'] = 3\n",
108+
"# people_in_house = dependents + married + 1\n",
109+
"# household_percapita = (total_income / people_in_house).astype(float)\n",
110+
"# household_percapita.describe()\n",
114111
"\n",
115112
"\n",
116113
"df_fill['Base_Loan_Installment'] = base_loan_installment\n",
117-
"df_fill['Remaining_Income'] = remaining_income"
114+
"df_fill['Remaining_Income'] = remaining_income\n",
115+
"# df_fill['HouseHold_Percapita'] = household_percapita"
118116
]
119117
},
120118
{

03_training_first_models.ipynb

+74-90
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)