Skip to content

ggrao1/Decision-tree

Repository files navigation

Decision tree VTU Lab program

Introduction

Decision tree learning is a menthod for approximating discrete-valued target functions, in which the learned function is represented by a decision tree. Learned trees can also be re-represented as sets of if-then rules to improve human readability. These learning methods are among the most popular of inductive inference algorithms and have been successfully applied to a broad range of tasks from learning to diagnose medical cases to learning to assess credit risk of loan applicants.

Decision Tree Representation

Decision tree classify instances by sorting them down the tree from the root to some leaf node, which provides the classification of the instance. Each node in the tree specifies a test of some attribute of the instance, and each branch descending from that node corresponds to one of the possible values for this attribute. An instance is classified by starting at the root node of the tree, testing the attribute specified by this node, then moving down the tree branch corresponding to the value of the attribute in the given example. This process is then repeated for the subtree rooted at the new node.

Decision Tree Representation For PlayTennis Dataset

alt text

Dataset's

Dataset for this program is "PlayTennis" that can be found in play.csv file Another dataset used to test is "software hardware" in "software hardware.csv" file