Skip to content

cs25-esc/bank-churn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

bank-churn using logistic regression.

the eda has been done on the power bi to gain the insights as fast as possible.

it has been observed that the attrition flag(output) is not balanced.

training data has been scaled using the standard scaler everytime and stratified option is enabled while making train test split

below are results - cross val score of accuracy and classfication report at each instance

simple logistic regression -

image

logistic regression by undersampling the majority class

image

logistic regression by oversampling the minority class

image

logistic regression by using SMOTE with sampling_strategy='minority'

image

-- at this point the results of SMOTE , oversampling the minority class , undersampling the majority class performing far better to the normal logistic regression. we did all the above process with 23 features and i decided to do feature elimination.

below are reults when RFECV and SMOTE used (rfecv REDUCED TO 20 FEATURES)

image

below are reults when RFE and SMOTE used (allowed to use 10 features)

image

below are reults when RFE and SMOTE used (allowed to use 15 features)

image

conclusion:

it can be concluded that "when RFECV and SMOTE used (rfecv REDUCED TO 20 FEATURES)" method performs consistent and better compared to all.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published