-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.py
75 lines (62 loc) · 1.25 KB
/
constant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"""
Script with the manually selected features neeeded along the scripts
"""
OBJECT_TO_FLOAT = [
'Annual_Income',
'Changed_Credit_Limit',
'Outstanding_Debt',
'Amount_invested_monthly',
'Monthly_Balance'
]
OBJECT_TO_INT = [
'Age',
'Num_of_Loan',
'Num_of_Delayed_Payment'
]
TIME_TO_NUMERIC_YEARS = [
'Credit_History_Age'
]
MONTHS_TO_NUMERIC = [
'Month'
]
MULTI_LABEL_BINARIZER_FEATURES = [
'Type_of_Loan'
]
ORDINAL_VARIABLES = [
'Credit_Mix',
'Payment_of_Min_Amount'
]
CATEGORICAL_NON_ORDINAL_VARIABLES = [
'Occupation',
'Payment_Behaviour'
]
CONTINUOUS_FEATURES = [
'Age',
'Annual_Income',
'Monthly_Inhand_Salary',
'Num_Bank_Accounts',
'Num_Credit_Card',
'Interest_Rate',
'Num_of_Loan',
'Delay_from_due_date',
'Num_of_Delayed_Payment',
'Changed_Credit_Limit',
'Num_Credit_Inquiries',
'Outstanding_Debt',
'Credit_Utilization_Ratio',
'Credit_History_Age',
'Total_EMI_per_month',
'Amount_invested_monthly',
'Monthly_Balance'
]
PARAMS_RF_RFE = {
"n_estimators": 40,
"max_depth": 4,
"criterion": "gini",
"random_state": 42
}
TARGET_MAPPING = {
"Poor": 0,
"Standard": 1,
"Good": 2
}