Question: Design the following steps for Decision tree classifier using Social _ Network _ Ads.csv table [ [ Age , EstimatedSalary,Purchased ] , [ 1

Design the following steps for Decision tree classifier using Social_Network_Ads.csv
\table[[Age,EstimatedSalary,Purchased],[19,19000,0],[35,20000,0],[26,43000,0],[27,57000,0],[19,76000,0],[27,58000,0],[27,84000,0],[32,150000,1]]
Importing the libraries
Importing the dataset
Splitting the dataset with test size =25%
Feature Scaling - Apply Standard Scalar
Training the model
Predicting a new result for 30,87000
Print the Confusion Matrix, Classification report
 Design the following steps for Decision tree classifier using Social_Network_Ads.csv \table[[Age,EstimatedSalary,Purchased],[19,19000,0],[35,20000,0],[26,43000,0],[27,57000,0],[19,76000,0],[27,58000,0],[27,84000,0],[32,150000,1]]

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!