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 insurance_data.csv in the exercise folder, then perform the following tasks:
Split the data into training set and testing set (X_train, X_test, y_train, y_test).
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 X_train and save the results in (y_train_pred)
Measure the performance of the model using confusion matrix (show the matrix and the precision, recall , and F1 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 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!