Package nltk_lite :: Package contrib :: Package classifier :: Module decisiontree :: Class DecisionTree
[hide private]
[frames] | no frames]

Class DecisionTree

source code

Classifier --+    
             |    
     oner.OneR --+
                 |
                DecisionTree

Instance Methods [hide private]
 
__init__(self, training, attributes, klass) source code
 
build_tree(self, instances, used_attributes) source code
 
classify(self, instances) source code
 
maximum_information_gain(self) source code
 
maximum_gain_ratio(self) source code
 
higher_value_preferred(self, method) source code

Inherited from oner.OneR: best_decision_stump, minimum_error, test, verify

Inherited from Classifier: can_handle_continuous_attributes, validate_training

Method Details [hide private]

__init__(self, training, attributes, klass)
(Constructor)

source code 
Overrides: oner.OneR.__init__

classify(self, instances)

source code 
Overrides: oner.OneR.classify