1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Michael R. Crusoe <crusoe@debian.org>
Subject: removed duplicate and non-functional copy function
The previous one works, but cython 3.x was taking the later definition
--- python-pomegranate.orig/pomegranate/base.pyx
+++ python-pomegranate/pomegranate/base.pyx
@@ -127,24 +127,6 @@
"""Thaw the distribution, re-allowing updates to occur."""
self.frozen = False
- def copy(self):
- """Return a deep copy of this distribution object.
-
- This object will not be tied to any other distribution or connected
- in any form.
-
- Parameters
- ----------
- None
-
- Returns
- -------
- distribution : Distribution
- A copy of the distribution with the same parameters.
- """
-
- return self.__class__(*self.parameters)
-
def sample(self, n=None):
"""Return a random item sampled from this distribution.
|