/decision-tree

Generates a decision tree based on training data cases. Uses the decision tree to predict outcome.

Primary LanguagePython

Decision Tree Creation

Generates a decision tree based on training data cases.

A sample file containing training cases is 'sampledata.txt', which contains training cases for a decision tree posing the question "should we play tennis today?" The target attribute, or outcome, must be the last 'column' of the training data, and the values must be positive or negative ('yes'/'no', 'true'/'false').