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

Method save

pattern/vector/__init__.py:1846–1848  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

1844 return sum(0.5 * (x1 - x0) * (y1 + y0) for (x0, y0), (x1, y1) in sorted(izip(roc, roc[1:])))
1845
1846 def save(self, path):
1847 self.test = None # Can't pickle instancemethods.
1848 cPickle.dump(self, open(path, "wb"), 1) # 1 = binary
1849
1850 @classmethod
1851 def load(cls, path):

Callers 1

_test_classifierMethod · 0.95

Calls 1

dumpMethod · 0.45

Tested by 1

_test_classifierMethod · 0.76