Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Considering the Census Income data with response variable as Income(>50k and
Considering the Census Income data with response variable as Income(>50k and <=50k).
- Import the csv dataset from https://www.kaggle.com/uciml/adult-census-income (Links to an external site.)
- Identify the presence of missing values, fill the missing values with mean for numerical attributes and mode value for categorical attributes.
- Visualize the dataset.
- Extract X as all columns except the Income column and Y as Income column.
- Split the data into training set and testing set.
- Model and train the classifier using GaussianNB and BernoulliNB.
- Compute the accuracy and confusion matrix for each classifier.
- Plot the decision boundary, visualize training and test results
Instructions
- Follow the instructions in each question carefully.
- Python code from Jupyter notebook along with output for each cell is expected.
- Any assignment submitted using other python IDEs are not considered for grading.
- Use appropriate labels for all visualizations.
- Upload the output.csv file along with the notebook when required.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started