subject

You are creating a binary classification model based on a DataFrame that contains the following data about loan applications: customer_id income savings debt approve 105671 75000 1750 26000 no 105672 120000 50750 27750 yes 105673 54000 37000 3500 yes You want to use the data in the income, savings, and debt fields as features to predict a label based on the approve field. Which of the following changes must you make to the label data before using it to train the model?
A. Convert the values in the approve column to numeric representations of the values "yes" and "no".B. Convert the values in the approve column to a vector. C. Rename the approve column to label. D. Create a new DataFrame with a single column that contains a vector of the income, savings, debt, and approve values.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
You are creating a binary classification model based on a DataFrame that contains the following data...
Questions
question
Mathematics, 10.12.2020 01:00
Questions on the website: 13722360