-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
48 lines (43 loc) · 1.2 KB
/
constants.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
'''
Churn Project - constants
Author: Samuel Haddad
Date: January, 2024
'''
quant_columns = [
'Customer_Age',
'Dependent_count',
'Months_on_book',
'Total_Relationship_Count',
'Months_Inactive_12_mon',
'Contacts_Count_12_mon',
'Credit_Limit',
'Total_Revolving_Bal',
'Avg_Open_To_Buy',
'Total_Amt_Chng_Q4_Q1',
'Total_Trans_Amt',
'Total_Trans_Ct',
'Total_Ct_Chng_Q4_Q1',
'Avg_Utilization_Ratio'
]
cat_columns = [
'Gender',
'Education_Level',
'Marital_Status',
'Income_Category',
'Card_Category'
]
keep_cols = [
'Customer_Age', 'Dependent_count', 'Months_on_book',
'Total_Relationship_Count', 'Months_Inactive_12_mon',
'Contacts_Count_12_mon', 'Credit_Limit', 'Total_Revolving_Bal',
'Avg_Open_To_Buy', 'Total_Amt_Chng_Q4_Q1', 'Total_Trans_Amt',
'Total_Trans_Ct', 'Total_Ct_Chng_Q4_Q1', 'Avg_Utilization_Ratio',
'Gender_Churn', 'Education_Level_Churn', 'Marital_Status_Churn',
'Income_Category_Churn', 'Card_Category_Churn'
]
param_grid = {
'n_estimators': [200, 500],
'max_features': ['log2', 'sqrt'],
'max_depth': [4, 5, 100],
'criterion': ['gini', 'entropy']
}