Answered step by step
Verified Expert Solution
Question
1 Approved Answer
## First, Create a Multilayer Perceptron Classifier ( Neural Network ) to classify loans as accepted or rejected ( Y or N ) . (
## First, Create a Multilayer Perceptron Classifier Neural Network to classify loans as accepted or rejected Y or N pts
Drop Gender, LoanID and Missing Values before training.
We will inspect Gender after training, so be careful how you drop it before training and testing.
Hint: Wait until scaling and create new variable name, XtrainscXtestsc to save XtrainXtest for later.
TrainTest with a split and stratify on Gender.
Remember to drop outliers from ApplicantIncomeCoapplicantIncome and LoanAmount
Remember to create integer dummies for categorical variables.
Even if a variable is numeric, it may still just be a category. Check with valuecounts
Remember to scale the data without violating data leakage
Create your Classifier with at least Layers. You are free to choose how many nodes are in each layer.
To the best of your ability, search for a stable model. You will not be graded on model performance.
Display the Confusion Matricies for both the Train and Test sets.
Display the Feature Importance for the Training set. Is this expected?
Comment on the Stability of the Model.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started