Question: Inspect the dataset titled lab 0 1 _ dataset _ 2 . csv which also has a mixture of numerical and categorical data. For this
Inspect the dataset titled labdatasetcsv which also has a mixture of numerical and categorical data. For this problem, you will use decision tree classifiers for supervised learning. In particular, you will be using the functionalities of the sklearn.tree library. The classification task using sklearn libraries work only on numericalvalued attributes, and not on categorical ones. What to do now? Hint: Look up Onehot Encoding and Integer Encoding Here are all the required tasks
Restructure the dataset such that it has all numericalvalued attributes. marks
Perform supervised learning using decision tree classifiers. Employ the traintest
split approach during the learning. marks
After the learning is complete, show the results by predicting the class of the test
set. Display the results of the prediction and test set sidebyside. marks
Output the decision tree; it can be either a textual representation or a graphical
representation. marks
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
