|
|
|
list of (immutable)
|
labels(self)
Returns:
the list of category labels used by this classifier. |
source code
|
|
|
label
|
classify(self,
featureset)
Returns:
the most appropriate label for the given featureset. |
source code
|
|
|
|
|
|
|
pp(self,
width=70,
prefix='',
depth=4)
Return a string containing a pretty-printed version of this decision
tree. |
source code
|
|
|
|
pseudocode(self,
prefix='',
depth=4)
Return a string representation of this decision tree that expresses
the decisions it makes as a nested set of pseudocode if statements. |
source code
|
|
|
|
|
|
|
| refine(self,
labeled_featuresets,
entropy_cutoff,
depth_cutoff,
support_cutoff,
binary=False,
feature_values=None,
verbose=False) |
source code
|
|
|
Inherited from api.ClassifierI:
batch_classify,
batch_prob_classify,
prob_classify
|
|
Inherited from api.ClassifierI:
batch_probdist,
probdist
|
|
|
| train(labeled_featuresets,
entropy_cutoff=0.05,
depth_cutoff=100,
support_cutoff=10,
binary=False,
feature_values=None,
verbose=False) |
source code
|
|
|
|
|
|
|
|
|
|
| best_stump(feature_names,
labeled_featuresets,
verbose=False) |
source code
|
|
|
|
| binary_stump(feature_name,
feature_value,
labeled_featuresets) |
source code
|
|
|
|
| best_binary_stump(feature_names,
labeled_featuresets,
feature_values,
verbose=False) |
source code
|
|