We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183fd68 commit d47c5abCopy full SHA for d47c5ab
test.py
@@ -164,6 +164,13 @@ def testUnmodifiedData(self):
164
[new_data.extend(_) for _ in cl.getlevel(40)]
165
self.assertEqual(sorted(new_data), sorted(self.__data))
166
167
+ def testMultiprocessing(self):
168
+ cl = HierarchicalClustering(self.__data, lambda x, y: abs(x - y),
169
+ num_processes=4)
170
+ new_data = []
171
+ [new_data.extend(_) for _ in cl.getlevel(40)]
172
+ self.assertEqual(sorted(new_data), sorted(self.__data))
173
+
174
175
class HClusterStringTestCase(unittest.TestCase):
176
0 commit comments