Question: PLEASE PROVIDE THE NECESSARY PYTHON CODE TO COMPLETE THIS PROJECT. The problem for this course project is related to direct marketing campaigns ( phone calls
PLEASE PROVIDE THE NECESSARY PYTHON CODE TO COMPLETE THIS PROJECT. The problem for this course project is related to direct marketing campaigns phone calls of a Portuguese banking institution. The classification goal is to predict whether the client subscribes a term deposit or not. The target class is the last attribute subscribed and has two values yes and no The training set is in trainset.csv and the test set is in testset.csv The dataset contains subscribed yes and unsubscribed no customers.
Attribute Information: age numeric
job: type of job categorical: 'admin. 'bluecollar', 'entrepreneur', 'housemaid', 'management', 'retired', 'selfemployed', 'services', 'student', 'technician', 'unemployed', 'unknown'
marital: marital status categorical: 'divorced', 'married', 'single', 'unknown'; note: 'divorced' means divorced or widowed
education: categorical: 'basicy 'basicy 'basicy 'high.school', 'illiterate', 'professional.course', 'university.degree', 'unknown'
housing: has housing loan? categorical: no 'yes', 'unknown'
loan: has personal loan? categorical: no 'yes', 'unknown'
contact: contact communication type categorical: 'cellular', 'telephone'
month: last contact month of year categorical: 'jan', 'feb', 'mar', 'nov', 'dec'
dayofweek: last contact day of the week categorical: 'mon', 'tue', 'wed', 'thu', 'fri'
duration: last contact duration, in seconds numeric
campaign: number of contacts performed during this campaign and for this client numeric includes last contact
pdays: number of days that passed by after the client was last contacted from a previous campaign numeric; means client was not previously contacted
poutcome: outcome of the previous marketing campaign categorical: 'failure', 'nonexistent', 'success'
nremployed: number of employees quarterly indicator numeric
Target Attribute: Subscribed has the client subscribed a term deposit? binary: 'yes',no
The project involves the following steps:
Data exploration: try to know data and represents statistics for the important features among the features and the target attribute.
Preprocessing the data. The goal of this step is to extract features from records in the training set and use these features to test data sets. Note that the data have unknown values need to be cleaned.
Use classificationlearning methods provided by Python to learn models from the set of training examples. You can use any of the classification methods decision tree, regression, KNN for this purpose. You should build at least two different and fundamentally distinct models eg one decision tree and one regression Note that two decision trees with different attributes count as one model.
Test the learned models on the test set and report the testing results.
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
