MCPcopy Index your code
hub / github.com/clips/pattern / split

Method split

pattern/vector/__init__.py:1872–1875  ·  view source on GitHub ↗

Returns an iterator over one-vs-all (type, TP, TN, FP, FN)-tuples.

(self)

Source from the content-addressed store, hash-verified

1870 self[type1][type2] += 1
1871
1872 def split(self):
1873 """ Returns an iterator over one-vs-all (type, TP, TN, FP, FN)-tuples.
1874 """
1875 return iter((type,) + self(type) for type in self)
1876
1877 def __call__(self, type):
1878 """ Returns a (TP, TN, FP, FN)-tuple for the given class (one-vs-all).

Callers 12

__init__.pyFile · 0.45
wordsFunction · 0.45
loadMethod · 0.45
saveMethod · 0.45
_testMethod · 0.45
aucMethod · 0.45
svm_read_problemFunction · 0.45
svm_predictFunction · 0.45
svm_read_problemFunction · 0.45
predictFunction · 0.45
parse_optionsMethod · 0.45
parse_optionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected