Question: give python code for Consider the following customer: Age = 4 0 , Experience = 1 0 , Income = 8 4 , Family =

give python code for
Consider the following customer:
Age =40, Experience =10, Income =84, Family =2, CCAvg =2, Education_
1=0, Education_2=1, Education_3=0, Mortgage =0, Securities
Account =0, CD Account =0, Online =1, and Credit Card =1. Perform
a k-NN classification with all predictors except ID and ZIP code using k =1.
Remember to transform categorical predictors with more than two categories into
dummy variables first. Specify the success class as 1(loan acceptance), and use the
default cutoff value of 0.5. How would this customer be classified?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!