MCPcopy
hub / github.com/nltk/nltk / error

Method error

nltk/classify/decisiontree.py:65–70  ·  view source on GitHub ↗
(self, labeled_featuresets)

Source from the content-addressed store, hash-verified

63 return self._label
64
65 def error(self, labeled_featuresets):
66 errors = 0
67 for featureset, label in labeled_featuresets:
68 if self.classify(featureset) != label:
69 errors += 1
70 return errors / len(labeled_featuresets)
71
72 def pretty_format(self, width=70, prefix="", depth=4):
73 """

Callers 4

best_stumpMethod · 0.80
best_binary_stumpMethod · 0.80
boxer.pyFile · 0.80
mainFunction · 0.80

Calls 1

classifyMethod · 0.95

Tested by

no test coverage detected