[SciPy-dev] scipy.cluster

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Nov 10 06:06:53 CST 2008


>>> from scipy import cluster
>>> cluster.test() 
======================================================================
FAIL: Tests fcluster(Z, criterion='maxclust', t=2) on a 
random 3-cluster data set.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 457, in test_fcluster_maxclusts_2
     self.failUnless(is_isomorphic(T, expectedT))
AssertionError

======================================================================
FAIL: Tests fcluster(Z, criterion='maxclust', t=3) on a 
random 3-cluster data set.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 466, in test_fcluster_maxclusts_3
     self.failUnless(is_isomorphic(T, expectedT))
AssertionError

======================================================================
FAIL: Tests fcluster(Z, criterion='maxclust', t=4) on a 
random 3-cluster data set.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 475, in test_fcluster_maxclusts_4
     self.failUnless(is_isomorphic(T, expectedT))
AssertionError

======================================================================
FAIL: Tests fclusterdata(X, criterion='maxclust', t=2) on 
a random 3-cluster data set.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 434, in test_fclusterdata_maxclusts_2
     self.failUnless(is_isomorphic(T, expectedT))
AssertionError

======================================================================
FAIL: Tests fclusterdata(X, criterion='maxclust', t=3) on 
a random 3-cluster data set.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 441, in test_fclusterdata_maxclusts_3
     self.failUnless(is_isomorphic(T, expectedT))
AssertionError

======================================================================
FAIL: Tests fclusterdata(X, criterion='maxclust', t=4) on 
a random 3-cluster data set.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 448, in test_fclusterdata_maxclusts_4
     self.failUnless(is_isomorphic(T, expectedT))
AssertionError

----------------------------------------------------------------------
Ran 166 tests in 20.086s

FAILED (errors=1, failures=6)
<nose.result.TextTestResult run=166 errors=1 failures=6>
>>> from scipy import cluster
>>> scipy.__version__
'0.7.0.dev5035'

======================================================================
ERROR: Tests leaders using a flat clustering generated by 
single linkage.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/scipy/cluster/tests/test_hierarchy.py", 
line 487, in test_leaders_single
     self.failUnless((L[0] == Lright[0]).all() and (L[1] 
== Lright[1]).all())
AttributeError: 'bool' object has no attribute 'all'
  


More information about the Scipy-dev mailing list