Name : Lau Sook Han Gayle Date: 31/10/22 Email: laugayle@gmail.com
Attribute Description
Age- Age of the member when signing up as a memberGender- Gender of the memberMonthly Income- Monthly declared income of the member in SGDTravel Time- Estimated amount of time needed to travel to the club from home (mins)Qualification- Education qualification level of the member (1-Diploma, 2-Bachelors, 3-Masters, 4-PH.D)Work Domain- Work domain of the memberUsage rate- Average number of days in a week visiting the country clubBranch- Location of the branch that the member visitsMembership- Membership tier (1-Normal 2-Bronze 3-Silver 4-Gold)Months- Number of months as a member of the country clubBirth Year- Year the member was bornUsage Time- Average number of hours spent in the country club per visitUsage- Usage Time * Usage Rate (new)
Target Feature: Attrition (If the member left: 0 = No, 1 = Yes)
Member Unique ID: Unique member ID (removed)
Categorical features:Qualification,Work Domain,Branch,Membership
Binary features:Gender,Attrition
Numerical Features:Age,Travel Time,Monthly Income,Usage Rate,Months,Birth Year,Usage Time
- Classification: predict member attrition using the provided dataset to help a country club to formulate policies to reduce attrition. In your submission, you are to evaluate at least 3 suitable models for predicting member attrition.
. ├── eda.ipnyb ├── data │ └── score.db # removed ├── results │ └── testing accuracy.csv ├── requirements.txt ├── run.sh └── src ├── └── run.py
**run.py
2. Data Cleaning (data is cleaned - 'Age', 'Monthly Income', Birth Year, 'Qualification', 'Travel Time)'
- Logistic Regression
- Decision Tree Model
- Boosting Decision Tree
- Bagging Decision Tree
- Random Forest Model
- Support Vector Machine
- KNN
- Naive Bayes
6. Results
Accuracy and Recall
Machine learning model created with python 3 and bash script.
Paste the following command on your bash terminal to download dependencies
pip install -r requirements.txtPast the followin command on your bash terminal to grant permission to execute the 'run.sh' file
chmod +x run.shPaste the following command on the bash terminal to run the machine learning programme
./run.sh