Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Objective Do the necessary data exploration, data pre - processing, data preparation and build models using classification approaches to predict whether the user clicks the
Objective Do the necessary data exploration, data preprocessing, data preparation and build models using classification approaches to predict whether the user clicks the links for online advertisements
Dataset: onlineuseradvertisement dataset
Import LibrariesDataset
Download the dataset
Import the required libraries
Data Visualization and Exploration M
a Print at least rows for sanity check to identify all the features present in the dataset and if the target matches with them. M
b Print the description and shape of the dataset. M
c Provide appropriate visualization to get an insight about the dataset. M
d Try exploring the data and see what insights can be drawn from the dataset. M
Data Preprocessing and cleaning M
a Do the appropriate preprocessing of the data like identifying NULL or Missing Values if any, handling of outliers if present in the dataset, skewed data etc. Apply appropriate feature engineering techniques for them. M
b Apply the feature transformation techniques like Standardization, Normalization, etc. You are free to apply the appropriate transformations depending upon the structure and the complexity of your dataset. M
c Do the correlational analysis on the dataset. Provide a visualization for the same. M
Data Preparation M
a Do the final feature selection and extract them into Column X and the class label into Column into Y M
b Split the dataset into training and test sets.
Model Building M
a Perform Model Development using Logistic regression and Decision tree. Deep Learning Models are strictly not allowed. M
b Train the model and print the training accuracy and loss values. M
Performance Evaluation M
a Print the confusion matrix. Provide appropriate analysis for the same. M
b Do the prediction for the test data and display the results for the inference. M
Sample Data set:
Age Gender Income Location Device InterestCategory TimeSpentonSite NumberofPagesViewed Click
Male Rural Mobile Sports
Male Suburban Tablet Sports
Male Suburban Tablet Sports
Male Urban Tablet Technology
Female Suburban Mobile Fashion
Female Rural Tablet Technology
Male Urban Mobile Sports
Male Rural Mobile Travel
Male Rural Tablet Technology
Male Rural Desktop Fashion
Male Suburban Desktop Sports
Female Suburban Tablet Technology
Female Rural Tablet Travel
Female Rural Mobile Technology
Female Urban Tablet Fashion
Male Urban Mobile Technology
Male Suburban Tablet Travel
Male Suburban Desktop Travel
Male Urban Desktop Fashion
Male Rural Tablet Travel
Female Suburban Mobile Sports
Male Rural Desktop Travel
Female Urban Mobile Sports
Female Suburban Tablet Technology
Female Suburban Tablet Sports
Female Urban Desktop Sports
Male Suburban Tablet Technology
Female Urban Desktop Travel
Female Suburban Mobile Sports
Female Urban Desktop Travel
Male Suburban Desktop Technology
Male Rural Mobile Fashion
Male Rural Desktop Travel
Female Rural Desktop Travel
Female Suburban Tablet Fashion
Male Suburban Mobile Fashion
Female Rural Desktop Technology
Male Rural Mobile Travel
Male Urban Mobile Travel
Female Urban Desktop Technology
Female Urban Tablet Travel
Female Rural Mobile Sports
Female Rural Desktop Sports
Male Rural Mobile Sports
Male Urban Tablet Travel
Male Suburban Tablet Sports
Male Rural Tablet Sports
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started