-
Use this notebook but handle imbalanced data using simple logistic regression from skelarn library. The original notebook using neural network but you need to use sklearn logistic regression or any other classification model and improve the f1-score of minority class using,
- Undersampling
- Oversampling: duplicate copy
- OVersampling: SMOT
- Ensemble
-
Take this dataset for bank customer churn prediction : https://www.kaggle.com/barelydedicated/bank-customer-churn-modeling
- Build a deep learning model to predict churn rate at bank
- Once model is built, print classification report and analyze precision, recall and f1-score
- Improve f1 score in minority class using various techniques such as undersampling, oversampling, ensemble etc
Solution Thanks https://github.com/src-sohail for providing this solution. 3. Exercise: Predicting Customer Satisfaction Use the Customer Satisfaction dataset from Kaggle. - https://www.kaggle.com/datasets/teejmahal20/airline-passenger-satisfaction
-
Build a classification model to predict customer satisfaction.
-
Initially, use a logistic regression model from scikit-learn.
-
Print the classification report and analyze precision, recall, and f1-score.
-
Try to improve the f1-score for the minority class using techniques like undersampling, oversampling, or ensemble methods.
-
[Solution] : https://www.kaggle.com/code/teejmahal20/classification-predicting-customer-satisfaction
Thanks https://kaggle/teejmahal20 for providing this solution.