UniversalBank.csv looks like : ID,Age,Experience,Income,ZIP…
- User
UniversalBank.csv looks like : ID,Age,Experience,Income,ZIP Code,Family,CCAvg,Education,Mortgage,Personal Loan,Securities Account,CD Account,Online,CreditCard 1,25,1,49,91107,4,1.60,1,0,0,1,0,0,0 2,45,19,34,90089,3,1.50,1,0,0,1,0,0,0 3,39,15,11,94720,1,1.00,1,0,0,0,0,0,0 4,35,9,100,94112,1,2.70,2,0,0,0,0,0,0 5,35,8,45,91330,4,1.00,2,0,0,0,0,0,1 6,37,13,29,92121,4,0.40,2,155,0,0,0,1,0 7,53,27,72,91711,2,1.50,2,0,0,0,0,1,0 8,50,24,22,93943,1,0.30,3,0,0,0,0,0,1 9,35,10,81,90089,3,0.60,2,104,0,0,0,1,0 10,34,9,180,93023,1,8.90,3,0,1,0,0,0,0 11,65,39,105,94710,4,2.40,3,0,0,0,0,0,0 12,29,5,45,90277,3,0.10,2,0,0,0,0,1,0 13,48,23,114,93106,2,3.80,3,0,0,1,0,0,0 14,59,32,40,94920,4,2.50,2,0,0,0,0,1,0 15,67,41,112,91741,1,2.00,1,0,0,1,0,0,0
for above dataset complete below task, write complete code :
Task 1: Load the dataset and perform exploratory data analysis via appropriate visualization. Normalize the features as appropriate
Task 2: Using 5 fold cross-validation, implement a multilayer perceptron with no more than 2 hidden layers. Report the training error and cross-validation error.
Task 3: Randomly select 5 data points. Apply LIME to explain the individual outcome predicted by the MLP. Then implement submodular pick and derive a LIME explanation for 10% of training data points with no more than 5 explanations. Using these explanations, predict whether credit card is approved or not using the entire training data and calculate the classification error.
Task 4: For the same 5 points selected in Task 3, apply SHAP to explain the same outcomes.
Task 5: Share your observations regarding the explanations offered by LIME and SHAP.
- Assistant