Question: The question below based on the [catalogmaketing.csv] ###https://drive.google.com/file/ ### d/1yMzBioiiJ4QSgSz_JA5YTMt-GmWbMQpN/###view?usp=sharing### I cannot directly post the link, please delete the ### above Create a program that

The question below based on the [catalogmaketing.csv]

###https://drive.google.com/file/###d/1yMzBioiiJ4QSgSz_JA5YTMt-GmWbMQpN/###view?usp=sharing###

I cannot directly post the link, please delete the ### above

The question below based on the [catalogmaketing.csv] ###https://drive.google.com/file/###d/1yMzBioiiJ4QSgSz_JA5YTMt-GmWbMQpN/###view?usp=sharing### I cannot directly postthe link, please delete the ### above Create a program that implement

Create a program that implement the simplest prediction process using logistic regression in scikit-learn that predict customers married base on AmountSpent, age, and salary. Pls split the data for 80% training and 20% testing data and report the classification performance on testing data. [Involved Concepts: Logistic regression, Sci-kit learn, train_test_split, accuracy_score, plot_roc_curve]

I did part of it

import pandas as pd trans=pd.read_csv("CatalogMarketing.csv")

from sklearn import model_selection X_train, X_test,Y_train, Y_test=model_selection.train_test_split(X,Y, test_size=0.2,random_state=0)

A 1 ID 2 3 4 5 6 7 8 9 10 B Gender 1 Male 2 Male 3 Female 4 Male 5 Male 6 Female 7 Female 8 Male 9 Female C D E F G Own Hom Married Salary Children Age Yes Married 97300 1 No Single 11200 0 No Single 34700 0 Yes Single 60300 0 No Single 52600 1 Yes Married 82200 1 No Single 12400 1 Yes Single 53900 0 No Single 15900 0 H I J Catalogs AmountSpent 51 12 3048 57 6 106 33 18 1615 62 24 2091 45 18 1773 53 12 1517 43 12 229 69 12 1186 71 18 406 299 300 301 302 303 304 305 298 Male Yes 299 Female No 300 Male Yes 301 Male Yes 302 Female Yes 303 Female No Single Single Single Unknown Unknown Single 62200 13200 64300 70000 123600 14100 0 0 0 1 1 3 65 25 44 50 55 30 12 24 6 6 12 6 1583 358 1325 1227 1892 153

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 Databases Questions!