Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -410,9 +410,13 @@ def loan(Gender, Married, Dependents, Education, Self_Employed, ApplicantIncome,
|
|
410 |
elif Property_Area == 'Urban': PA = 1
|
411 |
else: PA = 2
|
412 |
|
413 |
-
|
|
|
|
|
|
|
414 |
instance = np.array([Marr, Educ, CoapplicantIncome, CredHis, PA, Gen, Self_Empl, Dependents, ApplicantIncome, LoanAmount, Loan_Amount_Term])
|
415 |
|
|
|
416 |
#reshaping into 2D array
|
417 |
instance_resh = instance.reshape(1,-1)
|
418 |
new_instance_resh = scaler.transform(instance_resh)
|
|
|
410 |
elif Property_Area == 'Urban': PA = 1
|
411 |
else: PA = 2
|
412 |
|
413 |
+
ApplicantIncome = np.log(ApplicantIncome + 1)
|
414 |
+
CoapplicantIncome = np.log(CoapplicantIncome + 1)
|
415 |
+
LoanAmount = np.log(LoanAmount)
|
416 |
+
|
417 |
instance = np.array([Marr, Educ, CoapplicantIncome, CredHis, PA, Gen, Self_Empl, Dependents, ApplicantIncome, LoanAmount, Loan_Amount_Term])
|
418 |
|
419 |
+
|
420 |
#reshaping into 2D array
|
421 |
instance_resh = instance.reshape(1,-1)
|
422 |
new_instance_resh = scaler.transform(instance_resh)
|