Question: Open insurance _ data.csv in the exercise folder, then perform the following tasks: Split the data into training set and testing set ( X _
Open insurancedata.csv in the exercise folder, then perform the following tasks:
Split the data into training set and testing set Xtrain, Xtest, ytrain, ytest
Using SGD classifier, build a module that can predict whether a customer will buy an insurance or not.
Use the model to predict the values of Xtrain and save the results in ytrainpred
Measure the performance of the model using confusion matrix show the matrix and the precision, recall and F score
Plot the model ROC curve and calculate the AUC score.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
