[SciPy-dev] scipy.cluster
Damian Eads
eads at soe.ucsc.edu
Mon Nov 10 12:28:14 EST 2008
I just wrote these tests this weekend. Please standby.
On 11/10/08, Nils Wagner <nwagner at iam.uni-stuttgart.de> wrote:
>>>> 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'
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
--
Sent from my mobile device
-----------------------------------------------------
Damian Eads Ph.D. Student
Jack Baskin School of Engineering, UCSC E2-489
1156 High Street Machine Learning Lab
Santa Cruz, CA 95064 http://www.soe.ucsc.edu/~eads
More information about the SciPy-Dev
mailing list