Icon

18_​Decision_​Tree

18_Decision_Tree
Exercise Decision Tree1) Read data adult.csv2) Train a Decision Tree to predict whether or not a person earns more than 50k per year- Partition the dataset into a training set (75%) and a test set (25%). Apply stratified sampling option on the income column.- Train a Decision Tree model on the training set, and apply the model to the test setOPTIONAL: - Use the Scorer node to evaluate the accuracy of the model- Try out other parameter settings to get a higher accuracy. For example, change the quality measure, pruning method, or minimum number of records. Node 1Node 2Node 3Node 4Node 5Node 6Node 7 CSV Reader Partitioning DecisionTree Learner Decision TreePredictor Scorer (JavaScript) Missing Value ROC Curve Exercise Decision Tree1) Read data adult.csv2) Train a Decision Tree to predict whether or not a person earns more than 50k per year- Partition the dataset into a training set (75%) and a test set (25%). Apply stratified sampling option on the income column.- Train a Decision Tree model on the training set, and apply the model to the test setOPTIONAL: - Use the Scorer node to evaluate the accuracy of the model- Try out other parameter settings to get a higher accuracy. For example, change the quality measure, pruning method, or minimum number of records. Node 1Node 2Node 3Node 4Node 5Node 6Node 7 CSV Reader Partitioning DecisionTree Learner Decision TreePredictor Scorer (JavaScript) Missing Value ROC Curve

Nodes

Extensions

Links