Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 3 : 3 . 1 Fit a random forest model on Train . csv with a random state of 1 , 5 0 0
Task :
Fit a random forest model on Traincsv with a random state of epochs, a maximum depth of and a maximum feature of
Evaluate the confusion matrix, F scores and accuracy. Compare the random forest model with the logistic regression. State your observations in a markdown cell in your Jupyter notebook.
Task :
Fit support vector machine SVM algorithms on Traincsv with the following parameters: gamma ; C
Provide the confusion matrix, F scores and accuracy in a markdown cell in your Jupyter notebook.
Task :
Fit an ANN model sequential with input neurons and add two hidden layers with neurons each.
Use relu activation and adam optimiser. Use the normal kernel initialiser. Run it for epochs on traincsv with a batch size of
Provide the confusion matrix, F scores and accuracy on the test dataset in a markdown cell in your Jupyter notebook.
Task :
Explain which model you will use based on the evaluation metrics on the test dataset among all the models logistic regression, random forest, SVM and ANN and explain why. Put your answer in a markdown cell in your Jupyter notebook.
ID A numerical value assigned to each credit card customer
LIMITBAL The remaining credit a customer can use
SEX male ; female
EDUCATION graduate school ; university ; high school ; others ; unknown ; unknown
MARRIAGE unknown married single others
AGE A customers age in years
PAY Repayment status in September : or less: Paid duly ; or greater payment was delayed
PAY Repayment status in August or less: Paid duly ; or greater payment was delayed
PAY Repayment status in July or less: Paid duly ; or greater payment was delayed
PAY Repayment status in June or less: Paid duly ; or greater payment was delayed
PAY Repayment status in May or less: Paid duly ; or greater payment was delayed
PAY Repayment status in April or less: Paid duly ; or greater payment was delayed
BILLAMT The amount in the bill statement for September in NT dollar
BILLAMT The amount in the bill statement for August in NT dollar
BILLAMT The amount in the bill statement for July in NT dollar
BILLAMT The amount in the bill statement for June in NT dollar
BILLAMT The amount in the bill statement for May in NT dollar
BILLAMT The amount in the bill statement for April in NT dollar
PAYAMT The amount paid in NT dollar in September
PAYAMT The amount paid in NT dollar in August
PAYAMT The amount paid in NT dollar in July
PAYAMT The amount paid in NT dollar in June
PAYAMT The amount paid in NT dollar in May
PAYAMT The amount paid in NT dollar in April
Default Shows customers who defaulted on their payments on the following month: yes no
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