If using Conda, the following commands need to be run to set up the environment:
conda create -n assignment python=3.7
conda activate assignment
conda install numpy pandas scikit-learn matplotlib seaborn jupyter
conda install -c conda-forge pandas-profiling
conda install -c conda-forge shap
conda install -c conda-forge xgboost
pip install pandas-profiling
The Jupyter notebook MECC_Attrition_v3.ipynb contains the code to follow.
conda activate assignment
jupyter notebook
Fit. Predict. Evaluate.